I just can't understand why this never seems to work correctly... There are two shared libraries and a couple of jar or properties files that need to be installed in the Java JRE for TOS to do it's job. And they never seem to get installed right, or in the right place. I don't know about T2, which I think uses a different TOSComm package, so your best bet is to search for tos-install-jni and TOSComm in various combinations until you find the right set of advice to follow.
This page has some hints, but may be old too: http://docs.tinyos.net/index.php/Java_cygwin MS Pedpano wrote: > Hi Fahad, > > I am facing the same problem, did you get it working? > > Regards, > > Thiago. > > > > 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. >> >> >> >> >> >> _________________________________________________________________ >> Express yourself instantly with MSN Messenger! Download today it's FREE! >> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
