"The toscomm JNI library was not found." means that the system
couldn't load a .dll (possibly called toscomm.dll). So it's
probably not in your PATH. Most likely it should have been installed
in windows/system32 but wasn't...search around for toscomm and see
if you can find it elsewhere.
The inability to run TestSerial might be due to not getting the
current directory "." from your CLASSPATH, don't know why...but
you could try:
java -classpath . TestSerial
to see if it helps.
MS
Sola Famoriyo wrote:
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] <mailto:[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
<mailto:[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.
<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help