Hi,
I did all these 4 steps, but still same error. when i run the code which
guys recommended before i get this error :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no getenv in
java.library.path
what is this getenv ? if it means this file :libgetenv-32.so ,  i copied it
before so whats wrong ??!!! 





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-tp23612654p30594939.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