I am trying to install the javax.comm api on a machine (I already installed on another machine and it is working fine) but when I run the sample "BlackBox" application I get a message that says "No serial ports found!". I have followed the instructions and put win32com.dll in the bin directory of the jdk, comm.jar in the lib directory of the jdk, and javax.comm.properties in the lib directory of the jdk. I have also added the comm.jar file to the classpath since i am using a jdk and not jre. All this and I still can't get BlackBox to find any serial ports. Can anybody help me with this?
A:
There's a jre
directory in your JDK directory. Use <jdk>/jre/lib
, not <jdk>/lib
. Also, if you've added another copy of comm.jar
, located elsewhere, explicitly to your classpath, take it out.
You might want to add a System.out.println(System.getProperty("java.home")
statement to your code to make sure that you are placing things in the right directory; even when you are running <jdk>/bin/java
, the java.home
property should be <jdk>/jre
.
erickson
2009-03-24 18:57:08