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
when I run java.net.tools.Listen -comm ser...@com4:telosb
I am encountering the problem Toscomm JNI library not found
1. I have installed the tos-install-jni and it is successfully installed
without any problems. I confirm this because when I run
tos-locate-jre --jni the following is printed
/cyg
hi, all:
I am using cygwin in my Windows machine, when I type
" java.net.tinyos.tools.Listen -comm ser...@com6:iris"
I get the error :
" The toscomm JNI library was not found."
Then I followed the instruction to run " tos-install-jni",
I still get errors :
" Installling 32-bit Java JNI code in
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/li
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 th
Hi Urs,
I have run this before as well and I still get the same exception as below:
>>
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/home/mithil/Documents/TCD
MS Year1/NEMBES/MOCOA/SharedLibrary:/home/mith
Hi Mithil,
It is as I thought, you have multiple Java installations (see the actual
library search path printed by the test program). While TinyOS installs
the JNI files for java-6-sun, by default you seem to run java-6-openjdk.
Copy the libtoscomm-32.so and the libgetenv-32.so (or similar) fro
Hi Urs,
Thanks a lot Urs it works fine now, but using java-6-openjdk is ok I
suppose ?
Thanks,
Mithil
Urs Hunkeler wrote:
> Hi Mithil,
>
> It is as I thought, you have multiple Java installations (see the
> actual library search path printed by the test program). While TinyOS
> installs the J
Hi Mithil,
If it works, sure. I use whatever Java implementation is available and
convenient. :-)
Cheers,
Urs
Mithileash wrote:
> Hi Urs,
>
> Thanks a lot Urs it works fine now, but using java-6-openjdk is ok I
> suppose ?
>
> Thanks,
> Mithil
___
Could be one of many problems due mostly to Widows...
Try: "type java" and I'll bet you'll get windows32, not your JRE.
You need to have your java install in front of windows32 in
your PATH.
Then you have your JRE in "Program Files" where the space may
play havoc with the shell's ability to find
That darned tos-install-jni only works for some lucky people.
I'm afraid I don't use it or TOSComm so I can't help much.
See if you can find (google or search this list for TOSComm
and tos-install-jni) any doc on what actually gets installed.
You should be able to do it by hand. It is similar to t
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 r
Handy little program, thanks
However I'm not sure that it is the whole story. On my Widows box
all the Java dlls are in the JRE/bin, not the JDK/bin (ignoring the
fact that the Java install insists on making TWO JREs). But the
JRE/bin is not listed in the property, which seems to be the regular
Hi,
I have no idea how/why Java finds libraries not located in one of the
paths indicated by the program.
I only sporadically use Windows, and I used this program to debug the
installations on various systems (Windows, Linux, Mac OS X) with
success. I think, the last time I had to use it was o
There's probably some documentation someplace that explains the JNI
load sequence. But I'd bet no one knows where it is...
thanks
MS
Urs Hunkeler wrote:
> Hi,
>
> I have no idea how/why Java finds libraries not located in one of the
> paths indicated by the program.
>
> I only sporadically use
Hi,
I'm using tinyos-2.x on Linux (gentoo). Everything works fine, except Serial
comm. I get the same error that JNI library is not found, when it is clearly
there:
[EMAIL PROTECTED] /opt/ibm-java2-i386-50/jre/bin $ ls -l libtos*
-rwxr-xr-x 1 root root 89949 Jun 24 19:13 libtoscomm.so
The directo
line).
Regards,
-daniel
Original Message
> From: "John Smith" <[EMAIL PROTECTED]>
> Sent: Friday, July 13, 2007 3:03 PM
> To: tinyos-help@Millennium.Berkeley.EDU
> Subject: [Tinyos-help] toscomm JNI library not found (when it's clearly there)
17 matches
Mail list logo