comm.jar and opening serial port [message #1237904] |
Thu, 30 January 2014 22:51 |
chuck dahl Messages: 2 Registered: January 2014 |
Junior Member |
|
|
Hello everyone,
Im having problems using the comm.jar in the eclipse IDE to establish a serial connection to a port. I'm using windows xp 2002, eclipse (kepler), and jdk1.7.0. I have done this on this same computer not so long ago and dont remember having so much trouble getting it set-up for serial communication through a port.
I've been using the following files listed below with the paths they are in;
comm.jar:
C:\Program Files\java\jdk1.7.0\lib
C:\Program Files\java\jdk1.7.0\jre\lib\ext
win32com.dll:
C:\WINDOWS\system32
C:\Program Files\java\jdk1.7.0\bin
C:\Program Files\java\jdk1.7.0\jre\bin
**also included in eclipse project directory**
javax.comm.properties:
C:\Program Files\java\jdk1.7.0\lib
C:\Program Files\java\jdk1.7.0\jre\lib
**also included in eclipse project directory**
I have also set the following build paths in eclipse;
jre ---> C:\Program Files\java\jdk1.7.0
comm.jar ---> C:\Program Files\java\jdk1.7.0\lib
I also added a system variable of JAVA_HOME with a value of C:\Program Files\java\jdk1.7.0
The project has no errors at this point, but when I run it, I get the following:
Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
port COM3 not found.
I'm using the same code that had successfully opened a port for serial communication. I'm not sure what has happened since then, but I cant seem to be able to open a port anymore???
I've done extensive web searches and have tried various things but cant seem to resolve this problem. Any help or suggestions would be greatly appreciated. Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02846 seconds