Hello everyone,
I am trying to connect TelosB mote with a PDA. When I run Listen program, it
always says toscomm and getenv JNI library not found. I noticed that
toscomm.dll is loaded in program TOSCommLibraryLoader.java:
System.loadLibrary("toscomm"). I changed this sentence by replacing it with
System.load(absolute.getPath()), as follows:
public class TOSCommLibraryLoader
{
static void load()
{
File absolute = new File("/My Documents/Tinyos2.1/java/jni/toscomm.dll");
try
{
boolean exists = (new File(absolute.getPath())).exists();
if (exists) {
// File or directory exists
System.out.println("toscomm.dll exists");
} else {
// File or directory does not exist
System.out.println("toscomm.dll doesn't exist");
}
//System.loadLibrary("toscomm");
System.load(absolute.getPath());
}
catch( Throwable t )
{
System.err.println(
"The toscomm JNI library was not found.\n"+
"Check that your tinyos-tools package is installed and try\n"+
"rerunning tos-install-jni.\n"+
"Aborting.");
System.exit(1);
}
}
}
The output is: toscomm.dll does exist, but " The toscomm JNI library was not
found..."
I don't know why the System.load() fails. Is this because toscomm.dll depends
on other files? How to solve this problem?
Thanks a lot.
Jerry
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help