Hi Mithileash, If you have multiple versions of Java installed, it is possible that tos-locate-jre thinks you are using a different version and installs the JNI files in the wrong place.
This is a common problem and you can find instructions on how to debug your installation for instance in the following mail: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-January/037776.html Please try the Java program attached to the mail in the link above and copy the output from that program if you need more help. Cheers, Urs Mithileash wrote: > HI all, > > > I am new to Tiny OS, and I am encountering the problem Toscomm JNI > library not found when I run the TestSerial java file(java TestSerial > -comm serial@/dev/ttyUSB0:mica2). Additional Info: > > 1. I have installed the tos-install-jni and it is successfully installed > without any problems. I can confirm this because when I run > tos-locate-jre --jni the following is printed > /usr/lib/jvm/java-6-sun/jre/lib/i386 > > 2. I am running Ubuntu Jaunty 9.04 > > > I have tried searching for a solution in the mailing list but none of > the provided solutions work for me. Any help is much greatly appreciated. > > Thanks, > Mithil > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help