Hi, I had a similar but not this exact problem, it appeared that the java was not properly installed.
So, try to go to:

tinyos-2.0.2/support/sdk/java

and then execute:

make

Then try to make the TestSerial application again.
This has worked for me, I hope it does for you.
Good luck,
Hussein


Andrew C. Jung wrote:
Hello... I am new to use TinyOS. I am following the lesson4 which is "Mote-PC serial communication and SerialForwarder". TinyOS 2.0.2 is installed on ubuntu 8.10. system and I am working with Mica2. when I type " $ java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:mica2", I got following errors:

**************************************
 java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:mica2
Exception in thread "main" java.lang.NoClassDefFoundError: net/tinyos/tools/Listen
Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: net.tinyos.tools.Listen. Program will exit.
*******************************************

Also, I couldn't install |TestSerial| application on a mote.

If anyone knows how to fix it, please help me.
Sincerely,

Andrew C. Jung
------------------------------------------------------------------------

_______________________________________________
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