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
