Hi guys 
I got the same error while running TestSerial on both Windows and Ubuntu.
On Ubuntu:
 1.   locate the jni path using
     tos-locate-jre --jni
this gives /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
   the path where tinyos looks for the jni library

2.   go to /usr/lib/tinyos on terminal 
         type : cp libtoscomm-32.so /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
 and type :cp libgetenv-32.so /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386

3.  go to your app (TestSerial)
type tos-install-jni

I got : Installing 32-bit Java JNI code in
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 ... 
done.

4 with the jni library installed 
  type :  java TestSerial -comm serial@<portno>:<platform_name>(iris,micaz
,etc)

it will wok.
-- 
View this message in context: 
http://www.nabble.com/JNI-Library-not-found%2C-Lesson-4-tp23612654p24510470.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to