Hi Nick,
Try the instructions below and see whether this solves your problem.
Cheers,
Urs
-------- Original Message --------
Subject: Re: [Tinyos-help] TOS 2.1 install java tools question
Date: Mon, 24 Aug 2009 07:47:36 +0200
From: Urs Hunkeler <[email protected]>
To: Michael Schippling <[email protected]>
CC: Tinyos-Help <[email protected]>
References: <[email protected]>
<[email protected]>
Hi Sarah,
Problems with the JNI libraries are very common. I've written a small
test program in Java that will print you the search path that your
current Java Virtual Machine is using for finding JNI libraries. It will
also try to load the TinyOS libraries and print a much more detailed
error message in case there are other problems with the libraries (wrong
version, wrong permissions, etc.).
Please compile and run the attached Java program. Check whether
libtoscomm.so and libgetenv.so are in one of the paths indicated by the
program. If not, copy them to one of the directories in the list
(preferably one which ends in jre/bin or jre/lib). If the files are
already in one of the directories, check the error message to see if
there is any other problem. If it still doesn't work, please copy the
output of that program in your next e-mail.
Cheers,
Urs
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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help