I need help to make my serial communication working.
I have loaded the javax.comm. package from sun and installed the
files:
C:\j2sdk1.4.2_01\bin\win32com.dll
C:\j2sdk1.4.2_01\lib\comm.jar
C:\j2sdk1.4.2_01\lib\javax.comm.properties
I'm using NetBeans API and try to run the SimpleWrite.java which was
provided in the javax.comm. package.
When I run the code it never pass the line:
while (portList.hasMoreElements()) {
portList.hasMoreElements() is always FALSE :-(
What's wrong???
// Magnus
> I need help to make my serial communication working.
>
[quoted text clipped - 13 lines]
>
> What's wrong???
Almost certainly the properties file is not being found
try JAVA_HOME/jre/lib
if that doesn't work try spreading it around.
Bill
> I need help to make my serial communication working.
>
[quoted text clipped - 15 lines]
>
> // Magnus
You've got the files set up to compile but not run. You need to put the
comm.jar file in your CLASSPATH and the javax.comm.properties file in
the runtime lib path (probably c:\Program Files\Java\j2re1.4.2_01\lib).
You can put the comm.jar file there too.

Signature
Knute Johnson
email s/nospam/knute/
Molon labe...
Magnus - 02 Mar 2004 20:48 GMT
> > I need help to make my serial communication working.
> >
[quoted text clipped - 20 lines]
> the runtime lib path (probably c:\Program Files\Java\j2re1.4.2_01\lib).
> You can put the comm.jar file there too.
It is working now!!!!!
The solution of the problem was to put the files here instead:
C:\j2sdk1.4.2_01\jre\bin\win32com.dll
C:\j2sdk1.4.2_01\jre\lib\comm.jar
C:\j2sdk1.4.2_01\jre\lib\javax.comm.properties
Thanks for all the help
// Magnus
========================
http://www.hostedscripts.com/scripts/antispam.html
http://www.unclebobsuncle.com/antispam.html