Hi,

The library file should be called libgetenv.so on Linux. Which operating 
system are you using?

The TinyOS Java libraries in the SVN repository contain the native 
libraries for the most common operating systems (Linux, Mac, Windows) 
and no additional installation is necessary. If you don't get it to 
work, you might want to try this version (make sure the tinyos.jar file 
is in your classpath):
http://tinyos-main.googlecode.com/svn/trunk/support/sdk/java/tinyos.jar

Cheers,
Urs

On 1/5/11 12:00 PM, Mitii wrote:
>
>
>
> 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.
>>
>
>
>

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

Reply via email to