Thanks for your steps Manthan. Your steps worked for me! I'm able to run the
TestSerial application now.

I'm running Ubuntu Lucid by-the-way.

Thank you!
Bhanu.

Manthan wrote:
> 
> 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://old.nabble.com/JNI-Library-not-found%2C-Lesson-4-tp23612654p29432744.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