Hi Baudry, I faced this problem before with TestSerial when I was following tinyos tutorial http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder
Anyway, the solution should be one of these or all of them: 1- In tinyos.sh file CLASSPATH sould be looks like this: CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar It's so important to end with tinyos.jar, while xubuntos image doesn't include it. 2- Edit ~./bashrc (mousepad ~./bashrc) be sure that this line included source /opt/tinyos-2.1.0/tinyos.sh (this line important to configure user environment to enable tinyos-2.1.0). 3- Run command java while you are in your program directory, e.g. if you tried TestSerial program you should run java command while you are in /opt/tinyos-2.1.0/apps/tests/TestSerial, why? because java tools (Listener) need your program message message format which should be generated while you make telosb. I recommend you read this tutorial carefully before you try to run it. http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder I hope it helps :) Baudry Arthur wrote: > > Good evening everyone, > > I am running on a xubuntu virtual machine on my windows 7 laptop and I am > trying to make configure one of my USB port to listen to a serial > communication coming from telosb node (as the telosb only communicate > through usb I use that usb port as a serial one). I enter this command > when > I am in /opt/tinyos-2.1.0/support/sdk/java > > java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:115200 > > as my usb port is at /dev/ttyUSB0 > and the rate of the communication for telosb is 115200 > I get this error: > Exception in thread "main" java.lang.NoClassDefFoundError: > net/tinyos/tools/Listen > > Does anyone know how to fix this issue ? > > -- > Arthur Baudry > ESEO > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- View this message in context: http://old.nabble.com/Java-Problem-using-Telosb-nodes-tp32844741p32875548.html Sent from the TinyOS - Help mailing list archive at Nabble.com. _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help