发信人: nickwu (nickywu), 信区: Java
标 题: java串口API的 安装——精华区补遗
发信站: BBS 水木清华站 (Mon Dec 9 00:33:09 2002), 转信
按照精华区的串口 程序运行总是不对
后来才 发现是java串口API的安装说明有问题
查阅了N多资料,原API里的安装说明是针对JDK 1.1的
对JDK 1.2版本以上的安装 方法如下:
The three critical files that have to be copied into the SDK
directory in order to enable the Communications extension are
win32com.dll (assuming you are working with Windows),
comm.jar and javax.comm.properties.
Copy these three files to the following directories:
win32com.dll -> /jdk1.3/jre/bin/
comm.jar -> /jdk1.3/jre/lib/ext/
javax.comm.properties -> /jdk1.3/jre/lib/
这样精华区的程序就运行正常了。真费劲啊,我花了两天的 时间
才找到原因,希望能给大家一些参考。
程序在winxp+jdk1.3.01下运行通过。
标 题: java串口API的 安装——精华区补遗
发信站: BBS 水木清华站 (Mon Dec 9 00:33:09 2002), 转信
按照精华区的串口 程序运行总是不对
后来才 发现是java串口API的安装说明有问题
查阅了N多资料,原API里的安装说明是针对JDK 1.1的
对JDK 1.2版本以上的安装 方法如下:
The three critical files that have to be copied into the SDK
directory in order to enable the Communications extension are
win32com.dll (assuming you are working with Windows),
comm.jar and javax.comm.properties.
Copy these three files to the following directories:
win32com.dll -> /jdk1.3/jre/bin/
comm.jar -> /jdk1.3/jre/lib/ext/
javax.comm.properties -> /jdk1.3/jre/lib/
这样精华区的程序就运行正常了。真费劲啊,我花了两天的 时间
才找到原因,希望能给大家一些参考。
程序在winxp+jdk1.3.01下运行通过。