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
Ïà¹ØÎĵµ£º
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
ÔÚjava³ÌÐòÖУ¬ÍòÊÂÍòÎï½Ô¶ÔÏ󣬼´Ê¹ÊÇjava³ÌÐò±¾Éí£¬Ò²ÊÇÒ»¸ö¶ÔÏó
Ò»¡¢ReferenceÊDzÙ×ݶÔÏóÖ®Ô¿³×
cÓïÑÔÖÐÊÇʹÓÃÖ¸ÕëÀ´²Ù×ݶÔÏóµÄ£¬µ«ÊÇjavaÄØ£¿ÓõÄÊÇreferenceÀ´²Ù×ݶÔÏó£¬ÎÒϰ¹ß°ÑËû½Ð×ö¾ä±ú£¬¾ä±úºÍ¶ÔÏóµÄ¹ØÏµ¾ÍÏëÊǵçÊÓÒ£¿ØÆ÷ºÍµçÊÓ»ú ......
ÎÒ¸öÈËÀí½â³õʼ»¯ºÍÇåÀíµÄ¹ØÏµ¾ÍÊdzԷ¹ºÍÉϲÞËù£¬ÕýÊÇÓÐÁ˳õʼ»¯µÄ¶ÔÏó£¬ÎÒÃDzÅÄÜʹÓÃÇåÀí¡£µ«ÊÇΪʲôҪÇåÀíÄØ£¿ÏëÏóÒ»ÏÂÒ»¸öÈ˹â³Ô²»À£¬ÊǸöʲôÇé¿ö£¿£º£©ÄѵÀÎÒÃǵijÌÐòÒ²ÒªÏñ³Ô·¹Ò»Ñù¹â²úÉú¶ÔÏ󣬶ø²»È¥ÇåÀíʹÓÃÍê±ÏµÄ¶ÔÏó£¿ÈÎÓÉÎÒÃǵĶÔÏó¶Ñ»ýÈçɽ£¬Õ¼ÓÃϵͳ×ÊÔ´£¿
ÒÔ¹¹Ô캯ÊýÈ·±£³õʼ»¯µÄ½øÐÐ
&nb ......
JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյ쬷ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄѰìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡ ......
½áºÏDelphi
¿Í»§¶Ë×ÀÃæ¿ª·¢µÄÓÅÊÆºÍJavaµÄÎȽ¡Ç¿×³ÌØÐÔ£¬²ÉÓÃDelphi
Client + Java ServerµÄϵͳ¼Ü¹¹Ó¦¸ÃÊǺÜÓÐÊг¡µÄ£¬¾¹ýÒ»¶Îʱ¼äµÄʵ¼ÊÏîĿʵ¼ù£¬ÊµÏּܹ¹ÊÇÕâôʵÏֵ쬹©ÌÖÂÛ£º
1.ºǫ́ӦÓ÷þÎñ²ã¿É²ÉÓûùÓÚSpring+HibernateµÄÇáÁ¿¼¶J2EEʵÏÖ£¬²¢Ê¹ÓÃApache XML-RPC
Ìṩ¿Í»§¶Ëµ÷Óýӿڣ»
2.ǰ̨²ÉÓà Delphi
......