Java(tm) Communications API 的古怪问题
poney 2002-10-30 12:28:59 大家好:
Java(tm) Communications API 是sun提供的java与串口通讯的API。目前我正打算通过这个API实现通过串口与硬件通讯的功能。
可是我遇到了奇怪的问题。比如说:对于Java(tm) Communications API 的例子程序BlackBox,我在BlackBox目录下运行java BlackBox,一切正常。但是,如果这么运行:D:\jdk1.3.2\bin\java BlackBox,则找不到任何串口。这个问题导致我可以在命令行下面使用Java(tm) Communications API ,但是无法在开发工具里面(Idea, JBuilder7)使用Java(tm) Communications API 。
我不知道这该怎么解释,希望大家能帮我解答一下。
另外,有没有在JDK 1.4.1下面运行过Java(tm) Communications API,我还面临的一个问题就是Java(tm) Communications API 无法在JDK 1.4.1下面使用。