Hi,

I'm having trouble running the Java program that comes with TestSerial
in TinyOS 2.0. I have searched the archives, but can't find direct
reference to the following error:

[EMAIL PROTECTED] /opt/tinyos-2.x/apps/tests/TestSerial
$ java net.tinyos.tools.Listen -comm serial@/dev/ttyS7:micaz
Error on serial@/dev/ttyS7:57600: java.io.IOException: Could not open
/dev/ttyS7
: TOSComm JNI library runtime error: Error 3.
   The system cannot find the path specified.
   in NativeSerialPort.CreateFile

There isn't a problem with the port, as this error occurs with
/dev/ttyS0 and /dev/ttyS6 as well which I can successfully program with.
It may be a problem with my Java environment. I want to use the sun jdk,
but:

$ which java
/cygdrive/c/WINDOWS/system32/java

While:
$ tos-locate-jre --java
/cygdrive/c/Program Files/Java/jdk1.5.0_09/bin

Note that these utilities reference two java paths and I am trying not
to use Microsoft Java. My PATH variable does not contain
/cygdrive/c/WINDOWS/system32/java.
I would like to be able to run the TestSerial java program.

Thanks,
>From Stacy.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to