I don't use TOS2 so I can't easily look it up, but it may be
that you need to include the full package name on the command
line which might be something like:

java net.tinyos.tools.TestSerial

Java wants the fully specified package name for all classes
it uses, even if you are in the directory that contains the
class itself. And it treats package and directory trees
identically, so you can imagine a jar file as an extension
of the directory structure.

MS

[email protected] wrote:
> Dear all,
> 
> I try to follow the tinyos-2.x tutorial in lesson 4: Mote-PC serial  
> Communication. I successfully compiled and installed the TestSerial  
> application on telosb mote.
> 
> However, when I type in the TestSerial directory:
> 
> java TestSerial
> 
> I get:
> 
> The java class is not found:  TestSerial
> 
> 
> The current directory and the tinyos.jar are included in the CLASSPATH  
> as it points to:
> .:C:/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar:C:/cygwin/opt/tinyos-2.x/support/sdk/java
> 
> The TestSerial.class and TestSerialMsg.class were generated in the  
> TestSerial directory.
> 
> I am using Cygwin on Windows 7.
> 
> I hope someone can help me.
> Thanks a lot in advance.
> Tifenn
> 
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to