Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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±à³Ì·ç¸ñµÄ¸Ä±ä


×î½üStephan SchmidtÔÚ²©¿ÍÖз¢±íÁËÌâΪ¡¶ÏÂÒ»´úJava±à³Ì·ç¸ñ¡·µÄÎÄÕ£¬²ûÊöÁËËûÑÛÖÐJava±à³Ì·ç¸ñµÄ¸Ä±ä£¬ÒÔ¼°Î´À´µÄ×ßÏò£ºÐí¶à¹«Ë¾ºÍ¿ª·¢ÈËÔ±ÕýÔÚ´ÓJavaתÏòÆäËû±à³ÌÓïÑÔ£ºRuby¡¢Python¡¢Groovy¡¢Erlang»òScalaµÈµÈ¡£²»¹ýÄã¿ÉÄÜ×ö²»µ½ÕâÒ» µã¡£¼´±ãÈç´Ë£¬ÄãÒ²¿ÉÒԸıäÄãµÄ±à³Ì·ç¸ñ£¬»ñÈ¡ÕâЩÐÂÓïÑÔµÄÓÅÊÆ¡£ÊÂʵÉÏ£¬ÔÚ¹ýÈ ......

java Ö´ÐÐÅú´¦ÀíÎļþ.bat Êý¾Ý¿â×Ô¶¯±¸·Ý

1.ÌáǰдºÃ±¸·Ý.bat£¬·ÅÔÚij¸öÎļþ¼ÐÀ½«Â·¾¶ÉèÖÃÔÚ.propertiesÀïµÄ
 @echo off
set txt=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
echo %txt%
echo --------------------------------------------------
echo -------------ÕýÔÚÖ´ÐÐoracleÊý¾Ý¿â±¸·Ý--------------
echo ----- ......

ij¹«Ë¾java±ÊÊÔÌâ

×î½üÔÚÕÒһЩ±ÊÊÔÌ⣬ÒòΪ¿ìÕÒ¹¤×÷ÁË¡£¡£
ÌâÄ¿ÈçÏ£º
ÎÊ´ðÌâ   
1.Êý¾ÝÁ¬½Ó³ØµÄ¹¤×÷»úÖÆ   
2.Struts±êÇ©ÖÐ<html:errors>µÄ×÷ÓÃÊÇʲô   
3.Tomcat<CATALINA_HOME>¸ùĿ¼ÏÂ\server,\common,\sharedÒÔ¼°\WEB-INFϵÄlibÖеÄjarÎļþÔÚʹÓÃʱµÄÇø±ð¡£   
Ìî¿ÕÌâ &n ......

java¶ÔmysqlÊý¾Ý¿âµÄµ¼Èëµ¼³ö

//µ¼³ö
String mysql="mysqldump -uroot -proot  --opt databasename > d:/test.sql";    
java.lang.Runtime.getRuntime().exec("cmd /c "+mysql);   
//µ¼Èë
String mysql="mysqladmin -uroot -proot create databasename";    
java.lang.Runt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ