I tried running the lesson 4 of the tutorial, but i get the error below.
I have set my environment variables as below. When i run the java net. i get the error below.I have been able to compile the javafiles because i got my classfiles from it already. Please i need help to know what i have done wrongly or what i'm not invoking correctly.I have underlined the commands i ran.
Thanks....
 
CLASSPATH:    C:/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar;.
MAKERULES:   C:/cygwin/opt/tinyos-2.x/support/make/Makerules
TOSDIR   :         C:/cygwin/opt/tinyos-2.x/tos
TOSROOT :       C:/cygwin/opt/tinyos-2.x
 
PATH:            (C:\Program Files\MiKTeX 2.5\miktex\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Java\jdk1.5.0_09\bin;c:/cygwin/opt/msp430/bin:C:\cygwin\opt\msp430\bin;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools )
 
 
[EMAIL PROTECTED] /cygdrive/c/cygwin/opt/tinyos-2.x/apps
$ motelist
Reference CommPort Description
---------- ---------- ----------------------------------------
XBOJKR8C COM3 Crossbow Telos Rev.B
 
[EMAIL PROTECTED] /cygdrive/c/cygwin/opt/tinyos-2.x/apps
 
$ java net.tinyos.tools.Listen -comm [EMAIL PROTECTED]:telos
 
The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.
 
[EMAIL PROTECTED] ~
$ tos-install-jni
Installing Java JNI code in /cygdrive/c/Program Files/Java/jdk1.5.0_09/jre/bin .
..
done.
 
[EMAIL PROTECTED] /cygdrive/c/cygwin/opt/tinyos-2.x/support/sdk/java/net/tinyos/comm
$ javac *.java
Note: TOSSerial.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
 
[EMAIL PROTECTED] /cygdrive/c/cygwin/opt/tinyos-2.x/apps/tests/Testserial
$ ls
Makefile              TestSerial.h              TestSerialC.nc               build
README.txt         TestSerial.java               TestSerialMsg.class
TestSerial.class          TestSerialAppC.nc             TestSerialMsg.java
 
[EMAIL PROTECTED] /cygdrive/c/cygwin/opt/tinyos-2.x/apps
$ java TestSerial
Exception in thread "main" java.lang.NoClassDefFoundError: TestSerial


Access over 1 million songs - Yahoo! Music Unlimited.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to