Hi,

You probably have multiple Java installations. The active JRE might be a 
different one (e.g. the one installed by Windows), so you would have to 
find out which JRE is the active one and where it looks for the libraries.

Have you tried the Java program that was attached to the mail I referred 
to? You can find this program in this link:
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090112/632b46f9/attachment.txt

Save the contents into a file called LibTest.java, compile and run it. 
It will show you a list of directories where your active JRE will look 
for the libraries. Put the two libraries into one of the directories 
listed there.

Cheers,
Urs


Fahad Al-Jabarti wrote:
> I have found the (toscomm.dll and getenv.dll) in (C:\cygwin\lib\tinyos) then 
> i copied them to (C:\Program Files\Java\jdk1.6.0_13\jre\bin), still the error 
> keeps showing..??
> 
>  
> 
> my path is : C:\Program Files\Java\jdk1.6.0_13\bin; 
>  
>> Date: Tue, 19 May 2009 11:50:34 +0200
>> From: [email protected]
>> To: [email protected]
>> CC: [email protected]
>> Subject: Re: [Tinyos-help] JNI Library not found, Lesson 4
>>
>> Hi,
>>
>> Installation of the JNI libraries is not always easy (especially if 
>> there are different Java versions installed on the system). Basically, 
>> the libraries are two files (something like toscomm.dll and getenv.dll) 
>> that are copied to a special directory of the Java installation. In a 
>> previous mail to a similar question I have attached a very simple 
>> program that will list all the relevant paths used by your Java runtime 
>> environment (JRE). Download, compile and run that program to get a list 
>> of directories specific for your system and chose one directory. You can 
>> manually copy the library files there and your setup should work.
>>
>> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-January/037776.html
>>
>> Cheers,
>> Urs
>>
>>
>> Fahad Al-Jabarti wrote:
>>> Hi guys,,
>>>
>>>
>>>
>>>
>>>
>>> I need ur help with this problem, when i try to run the command ( $ java 
>>> TestSerial) i get this error, i've looked at the troubleshooting part of 
>>> lesson 4 
>>>
>>>
>>>
>>> but couldn't get it solved !
>>>
>>>
>>>
>>> please if u have a solution to this issue, just explain it to me cuz I'm 
>>> new to TinyOS..
>>>
>>>
>>>
>>> and where i can find JNI Library ??
>>>
>>>
>>>
>>> this is what i get:
>>>
>>>
>>>
>>> administra...@arabswell /opt/tinyos-2.x/apps/tests/testserial
>>> $ java TestSerial
>>> getenv JNI library not found. Env.getenv will not work
>>> (run the tos-install-jni tool, see man tos-install-jni for more details)
>>>
>>> s...@localhost:9002 died - exiting (java.net.ConnectException: Connection 
>>> refused:
>>> connect)
>>>
>>>
>>>
>>> administra...@arabswell /opt/tinyos-2.x/apps/tests/testserial
>>> $ tos-install-jni
>>> Installing 32-bit Java JNI code in /cygdrive/c/Program 
>>> Files/Java/jdk1.6.0_13/jr
>>> e/bin ...
>>> done.
>>>
>>>
>>>
>>> administra...@arabswell /opt/tinyos-2.x/apps/tests/testserial
>>> $ java TestSerial -comm ser...@com6:telosb
>>> The toscomm JNI library was not found.
>>> Check that your tinyos-tools package is installed and try
>>> rerunning tos-install-jni.
>>> Aborting.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to