Topic: 求助!关于java对串口编程问题 |
Print this page |
1.求助!关于java对串口编程问题 | Copy to clipboard |
Posted by: 影树 Posted on: 2004-09-09 09:31 java可不可以针对类似rs232这样的通讯口进行编程? 比如delphi中有对此编程的控件可以使用 可是我在j2se,j2me的package中都找不到关于串口编程的类库 各位朋友如有了解这方面的,希望给我回复,多谢!! |
2.Re:求助!关于java对串口编程问题 [Re: 影树] | Copy to clipboard |
Posted by: java8110 Posted on: 2004-09-09 11:57 有一个java包javax.comm,在sun的网站可以下载,上面有例子 JDK 1.2 and the Java(tm) Communications API Version 2.0 License As of the time of release of the Java(tm) communications API, limited testing with the lastest pre-release version of JDK 1.2 (RC1) has taken place. The testing has been limited to: can an application run using the Java communications API on JDK 1.2, and can the Java communications API find ports while running on JDK 1.2. A future version of the Java communications API will be tested on JDK 1.2 after a production release of JDK 1.2 is made. -------------------------------------------------------------------------------- Installing the Java Communications API on JDK 1.2 (RC1) <jdk> refers to the root directory of your JDK installation. If you installed JDK in c:\jdk1.2 then replace all reference to <jdk> with c:\jdk1.2. Windows: place the win32com.dll in <jdk>\jre\bin directory. Solaris: put the libSolarisSerialParallel.so in the LD_LIBRARY_PATH. Place the comm.jar in <jdk>\jre\lib\ext. Place the javax.comm.properties in <jdk>\jre\lib . Do not alter the CLASSPATH. -------------------------------------------------------------------------------- Running the Java Communications API on JDK 1.2 (RC1) Once you have installed the Java communications API you should be able to run applications that take advantage of the Java communications API without further modifications. Use the -cp option to java to indicate the location of the class or jar files for your application: java -cp c:\myapp\myapp.jar MyApp -------------------------------------------------------------------------------- Copyright © 1997-1998 Sun Microsystems, Inc. |
3.Re:求助!关于java对串口编程问题 [Re: 影树] | Copy to clipboard |
Posted by: kingtrue Posted on: 2004-09-09 16:57 可参阅以下内容 http://www.oreilly.com.tw/chinese/java/javaio_examples.htm |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |