[Tinyos-help] Mote-PC serial communication and SerialForwarder

Andrew C. Jung cjung1021 at gmail.com
Fri Feb 6 14:13:50 PST 2009


Thank you Hussein.  It is working now.  My problem was the same as yours.
After I execute java, I made a serial port writable.  Now, I can follow rest
of tutorial.  Thanks a lot.

-Andrew-

On Fri, Feb 6, 2009 at 4:37 AM, Hussein Khaleel
<hussein.khaleel at polito.it>wrote:

>  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 listTinyos-help at millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090206/d677e01d/attachment.htm 


More information about the Tinyos-help mailing list