Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

rxtxÈ¡´újavax.commʵÏÖJava¿çƽ̨É豸¶Ë¿ÚͨÐÅ

from Rxtx
This page is for general content regarding the use of rxtx. Feel free to add your own content.
Using RXTX In Eclipse
Deploying JAVA with RXTX
I wrote an app several months ago using javax.comm on windows. Sun has left me high and dry. rxtx help!
download ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip
unzip it
copy rxtxSerial.dll into your c:\program files\java\jre-version\bin dir
copy RXTXcomm.jar into your c:\program files\java\jre-version\lib\ext dir
change all references from 'javax.comm' to 'gnu.io'
recompile
test
 Dido Sun left me Hi and dry. After 30+ hours wasting my life on
javax.comm it is the RXTXcomm 2.1.7 that really worked the first
time
 REMEMBER !! for the newbies
  Change the all occurences of the import javax.comm.*; in 
   MyApps.java
  TO import gnu.io.*;
 I did not even have to recompile as suggested the rxtxSerial.dll
 a job well done for the rxtx.org team.
 Even after following the above instructions, under Netbeans 5.5 on Windows, I needed to right-click Libraries
under Projects on the left hand side of the screen, and select Add JAR/Folder, picking the RXTXcomm.jar file.
 Only then did my "import gnu.io.*;" become a valid command.  Also, I got a run-time error where it failed to
load the rxtxSerial.DLL library because it couldn't find it.  I needed to right-click the project name, select
properties, select Run under categories, and ...
add a VM Options: entry of -Djava.library.path="C:/where-ever-you-stuck-rxtxSerial.DLL-file;%PATH%" While I'm sure there is more than one way of adding the directory to your path, this worked for me. Note I did the default NetBeans 5.5/JDK 1.6.0 isntall accepting all the default options(ie clicking next until I got to finish), so I haven't modified my java paths or anything. 
Using RXTX In Eclipse
from Rxtx
This is how I add and use RXTX in Eclipse for Win32 Projects, there are probabl


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

JavaÎļþÏÂÔصļ¸ÖÖ·½Ê½

´ÓÍøÉÏ¿´µ½Ò»¸ö²»´íµÄjavaÎļþÏÂÔصļ¸ÖÖ·½Ê½ÎÄÕ£¬ÄùýÀ´¸ú´ó¼Ò·ÖÏíһϣº
JavaÎļþÏÂÔصļ¸ÖÖ·½Ê½
    public HttpServletResponse download(String path, HttpServletResponse response) {
        try {
 &n ......

JavaºËÐÄAPIÐèÒªÕÆÎյij̶È


JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾­³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյģ¬·ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄÑ°ìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡ ......

One Night in Java¿ØÖÆÌõÂë»ú£¨TSC£©

ÖÕÓÚÈ¡µÃÁËÒ»µãСµÄ½øÕ¹£¬¿ØÖÆÓÐЧÁË£¬ÖÁÉÙÊÇÎÒµãÔËÐУ¬ÌõÂë»ú³öÎÄ×ÖÀ²£¡Ê×Ïȷdz£¸Ðл²Î¿¼Á½ÆªÎÄÕµÄ×÷Õߣ¬²»µ¥ÊÇ·ÖÏíÁ˾­Ñ飬¸üÖØÒªµÄÊǸøÎÒÆôµÏ£¬
ÈÃÎÒÓÐÁËÐÅÐľõµÃÕâ¼þÊ¿ÉÒÔÕâô×ö¡£È»ºóÎÒҪ˵µÄÊÇJNative.jarºÜºÃÓã¬Ê¡È¥ÁË´«Í³JNIÄÇô¶à·ÇJava³ÌÐòÔ±µÄ¹¤×÷£¨µ«ÊÇÈç¹ûÕû¸ö¹¤×÷Íê³É
ºó£¬ÎÒ»¹ÊÇÏë¿´×ÅjnativeµÄÔ´Âë£¬Ó ......

javaÄÚ´æй¶

ºÜ¶àÈËÔÚ̸ÂÛÄÚ´æй¶ÎÊÌ⣬µ±È»¶ÔÓÚc/c++À´Ëµ£¬Õâ¸öÓ¦¸ÃÊÇÀϵôÑÀµÄÎÊÌ⣬µ«ÊǺܶàJavaÈËÔ±Ò²Ô½À´Ô½¶àµÃÌÖÂÛÕâ¸öÎÊÌ⣬ÎÒÕâÀïд¸öС½á£¬Ï£Íû¶Ô´ó¼ÒÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ¡£
¡¡¡¡ÄÚ´æй©µÄ¿®Äî
¡¡¡¡1.c/c++ÊdzÌÐòÔ±×Ô¼º¹ÜÀíÄڴ棬JavaÄÚ´æÊÇÓÉGC×Ô¶¯»ØÊյġ£
¡¡¡¡ÎÒËäÈ»²»ÊǺÜÊìϤC++£¬²»¹ýÕâ¸öÓ¦¸ÃûÓз¸³£Ê¶ÐÔ´íÎó°É¡£
¡¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ