I am trying to run the BlackBox file to test my port connection
(using the javax.comm package). Here are the details & set of errors
that I get:
OS: Win2k
CLASSPATH: CLASSPATH=e:\j2sdk1.4.0_01\bin;e:j2sdk1.4.0_01
\lib;e:\javacomm\commapi\samples\Blackbox\BlackBox.jar
comm.jar - is in e:\j2sdk1.4.0_01\jre\lib\ext\ directory
javax.comm.properties - is in e:\j2sdk1.4.0_01\jre\lib\ directory
win32com.dll - is in e:\j2sdk1.4.0_01\jre\bin directory
error:
E:\>java BlackBox
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/comm/PortInUseException
if i change the classpath to:
set CLASSPATH=e:\j2sdk1.4.0_01\jre\lib\ext\comm.jar;e:\j2sdk1.4.0_01
\bin;e:j2sdk1.4.0_01
\lib;e:\javacomm\commapi\samples\Blackbox\BlackBox.jar
then the error changes to:
No serial ports found!
Please let me know what needs to be changed so that I can get this
thing working.