Hi,

It looks like the TinyOS Java libraries are not in your classpath. There 
should be a tinyos.jar file somewhere, and the CLASSPATH environmental 
variable should point to it.

You can try something like:

export CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar
java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb

Cheers,
Urs


On 11/15/11 3:25 AM, Baudry Arthur wrote:
> Thank you for your support.
> I have compiled listen.java using javac, it worked but if I execute
> the same command as previously :
> java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:115200
>
> Now I get :
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/tinyos/packet/Packetizer
>          at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:241)
>          at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:230)
>          at 
> net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:138)
>          at net.tinyos.tools.Listen.main(Listen.java:56)
>
> Any thoughts ?
>
> On 11/14/11, Modi, Jenis Ashokkumar<[email protected]>  wrote:
>> Hi Arthur,
>> Chech whether Listen class is located at that location, also check if it's
>> java file is available. If java file is available then you need to compile
>> that file.
>>
>> Let me know if you are still facing problem .
>>
>> Jenis
>>
>>
>>
>> On Nov 14, 2011, at 5:09 PM, "Baudry Arthur"<[email protected]>
>> 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
>>> [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