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. 是不是安装到你使用的jdk下了??
<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. 是不是安装到你使用的jdk下了??
解决方案 »
- netbeans中如何让一个普通的java类,出现设计按钮,从而进行可视化的操作??
- 请问 边界类、控制类和实体类
- oracle存储过程中参数为date的问题
- 一个程序,多个控制台
- 求救!连接服务器的问题!(高分,在线等待)
- 来问个菜菜菜菜题,关于我的第一个java程序。。。
- 新手请教一个关于使用String类修改的简单问题。谢谢
- 小弟的java刚上手,迷迷糊糊不知除了教材上的该写些什么?哪位老大指点一二,或给个写代码的机会
- 如何在SELECT 语句中对给定的字段进行一些加工?再问
- eclipse 项目小红叉 构建路径问题 求帮助啊!
- 如何正确使用包?
- 一個小數點四舍五入後,如結果1.1,我怎樣改成1.10,在結果後面加一位0?
Version 2.0
License
Unzip the file javacomm20-win32.zip. This will produce a hierarchy with a top level directory commapi.
The examples in this document assume that you have unzipped the javacomm20-win32.zip file in your C: partition and your JDK installation is in C:\jdk1.1.6. If you have installed JDK in an other location or unzipped javacomm20-win32.zip in an other location modify the example commands appropriately. If you are installing the Java communications API into a JRE (Java runtime environment) follow the same instructions as for the JDK except where noted. See the additional instructions for running using the JRE. Copy win32com.dll to your <JDK>\bin directory. C:\>copy c:\commapi\win32com.dll to c:\jdk1.1.6\bin Copy comm.jar to your <JDK>\lib directory. C:\>copy c:\commapi\comm.jar c:\jdk1.1.6\lib Copy javax.comm.properties to your <JDK>\lib directory. C:\>copy c:\commapi\javax.comm.properties c:\jdk1.1.6\lib
The javax.comm.properties file must be installed. If it is not, no ports will be found by the system. Add comm.jar to your classpath (do not do this step for a JRE installation).
If you don't have a classpath defined: C:\>set CLASSPATH=c:\jdk1.1.6\lib\comm.jar
If you already have a classpath defined: C:\>set CLASSPATH=c:\jdk1.1.6\lib\comm.jar;%classpath%
Several serial port sample applications are provided with this release. One of them is BlackBox. To run BlackBox, first add BlackBox.jar to your classpath: C:\>set CLASSPATH=c:\commapi\samples\Blackbox\BlackBox.jar;%CLASSPATH% Now you can run BlackBox: C:\>java BlackBox
One sample driver, NullDriver, is included in the samples\NullDriver directory. This is useful for folks attempting to write a new driver for their own hardware.
--------------------------------------------------------------------------------
Running with the JRE
Use the -cp option to the JRE to specify the path to the comm.jar file and to your application. C:>\JRE\bin\jre -cp c:\JRE\jre\lib\comm.jar;c:\commapi\samples\Blackbox\BlackBox.jar BlackBox The javax.comm.properties file must be correctly installed (in the <jdk>\lib directory, see above for more details ) or no ports will be found.
我装了JDK后又装了JB9,没想到JCreator的默认classpath改成了JB的,被你提醒看了一下,发现错了呵呵,谢谢了,编译通过了