Hi all,
I recently bought a MacBook Pro, and I installed TinyOS 2.1 following the guide
on the TinyOS web site.
Everything seems to work (I can compile my TinyOS applications with "make
telosb"), except the java jni libraries.
Every time I run the serialforwarder or others java serial applications, I get
the message:
"The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting."
I run several times the tos-install-jni, and my jni libraries are correctly
placed in /Library/java/Extensions.
I tried to add to the TOSCommLibraryLoader.java some debug print, and this is
the result:
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libtoscomm.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at
net.tinyos.comm.TOSCommLibraryLoader.load(TOSCommLibraryLoader.java:33)
at net.tinyos.comm.TOSCommJNI.<clinit>(TOSCommJNI.java:14)
at net.tinyos.comm.NativeSerial.getTOSCommMap(NativeSerial.java:207)
at net.tinyos.comm.TOSSerial.<init>(TOSSerial.java:282)
at
net.tinyos.packet.SerialByteSource.openStreams(SerialByteSource.java:56)
at net.tinyos.packet.StreamByteSource.open(StreamByteSource.java:51)
at net.tinyos.packet.Packetizer.openSource(Packetizer.java:139)
at net.tinyos.packet.AbstractSource.open(AbstractSource.java:69)
at net.tinyos.packet.Packetizer.open(Packetizer.java:132)
at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
/Library/Java/Extensions/libtoscomm.jnilib:
The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.
My java version is:
$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
Thank you for any help or suggestions.
Regards,
Samuele.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help