Thankyou Michael,

I will try to rearrange my path although mine is quite long and appears
to be appended by several sources.
Urs Hunkeler found my problem - the Java program is Windows based (I
have to use Cygwin) so requires DOS style device names, i.e., "COM8"
rather than UNIX style device names.

Looking back now I can see I misread the TinyOS2 tutorial...

Thanks again,
>From Stacy.

-----Original Message-----
From: Michael Schippling [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 13 February 2007 5:58 PM
To: Walker, Stacy (DET, Newcastle)
Cc: [email protected]
Subject: Re: [Tinyos-help] Java IOException: System can't find specified
path to COM port

I'm not sure that the sys32/java thing is the main problem but try
putting the Real(TM) java/bin as the first thing in your PATH env var.
mine is something like:
/cygdrive/c/JAVA/j2sdk1.4.2_04/bin:.:/usr/local/bin:/usr/bin:/bin:/cygdr
ive/c/WINDOWS/system32:...

You should have system32 in your path someplace as it contains all sorts
of useful dlls, just not first.

Also I try not to put Java in "Program Files" as the space in the name
makes for trouble in just about every shell utility.

MS

[EMAIL PROTECTED] wrote:
> 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-h
> elp


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

Reply via email to