I think the problem is that your PATH -- which I believe is what is printed in the output below -- contains these: \WINDOWS\SYSTEM32 \WINDOWS\Sun\Java\bin \PROGRAM FILES\JAVA\JDK1.6.0_11\BIN
but the JNI files got installed to the JRE directory: /Program Files/Java/jdk1.6.0_11/jre/bin Windows32 itself has a drain bramaged version of java, I don't know what would be in Sun/Java, and for some reason a standard Java install insists on making two apparently identical JRE directories... So there are many possible java's to run. try: "type java" to see what you are really running. Then set your PATH variable to have the jre/bin directory before windows/system32 MS vinod kumar wrote: > when I run java.net.tools.Listen -comm serial@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 > > > > /cygdrive/c/Program Files/Java/jdk1.6.0_11/jre/bin > > > > > 2. In order to resolve the problem I try to follow the > following > link:http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-January/037776.html > > > > > I have run LibTest.java and get the exception below: > >>> C:\WINDOWS\SYSTEM32;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDO > > C:\WINDOWS\SYSTEM32;C:\WINDOWS ;C:\PROGRAM FILES\JAVA\JDK1.6.0_11\BIN;C:\CYGW > > BIN;C:\PROGRAM FILES\ATT\GRAPHVIZ\BIN;C:\PROGRAM FILES\ATT\GRAPHVIZ\BIN\TOOLS > \*CYGWIN*\BIN; C:\*CYGWIN*\BIN\NCC;C:\WINDOWS\system32;C:\WINDOWS ;C:\Program > Fil > > Java\jdk1.6.0_11\bin;C:\*cygwin*\bin;C:\Program > Files\ATT\Graphviz\bin;C:\Progr > > > Files\ATT\Graphviz\bin\tools;C:\Program Files\Nmap; > C:\*cygwin*\bin\ncc;C:\cygw > > bin;C:\Program Files\CVSNT\ > Exception in thread "main" java.lang.UnsatisfiedLinkError: no *toscomm* in > java > > brary.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at LibTest.main(LibTest.java:6) > > > > > could you please tell me what I should do? > > Thanks, > > Vinodh. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help