Hi, There's a script called tos-locate-jre in /usr/bin.
Try to run it using : #tos-locate-jre --jni It should return : $yourjavahome/jre/lib/i386 Otherwise you have to modify the script to return that value. I'm running Ubuntu, and I've modified that script (but I forgot which line). Regards, -daniel -------- Original Message -------- > From: "John Smith" <[EMAIL PROTECTED]> > Sent: Friday, July 13, 2007 3:03 PM > To: [email protected] > Subject: [Tinyos-help] toscomm JNI library not found (when it's clearly there) > > Hi, > I'm using tinyos-2.x on Linux (gentoo). Everything works fine, except Serial > comm. I get the same error that JNI library is not found, when it is clearly > there: > > [EMAIL PROTECTED] /opt/ibm-java2-i386-50/jre/bin $ ls -l libtos* > -rwxr-xr-x 1 root root 89949 Jun 24 19:13 libtoscomm.so > The directory /opt/ibm-java2-i386-50/jre/bin is in my CLASSPATH and in the > PATH. > > I have tried recompiling all the files in support/sdk/java but no luck. > > Any help will be much appreciated. > > Thanks > --kjs > > p.s. below is the exact error: > java TestSerial -comm serial@/dev/ttyUSB0: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://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
