Hi Harry,
Attached is a small Java program that first prints the library search
path and then tries to load the TOS native libraries. If it fails, you
get a more detailed error message than with the TOS java libraries.
Hope this helps.
Cheers,
Urs
Harry Gao wrote:
Hi all,
When I try to run SerialForwarder, I receive the following error:
The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.
And I when do run sudo tos-install-jni, I get
Installing 32-bit Java JNI code in /usr/lib/i686 ...
done.
It seems that this is not the default directory, since when I run
serialForwarder again, it still says that the package is not found. Any idea
how I can let it find the correct directory?
Thanks!
Harry
public class LibTest {
public static void main(String[] args) {
System.out.println(">> " + System.getProperty("java.library.path"));
try {
System.loadLibrary("getenv");
System.loadLibrary("toscomm");
} catch(Exception ex) {
ex.printStackTrace();
}
}
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help