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 anything. This is
just a superstition on my part but I always load JDKs in a
directory like "C:/JAVA". You can do this by watching carefully
when installing and using the custom options. For some reason
you have to do it twice, for the JDK and a separate JRE.

Then most likely once that's all sorted you will probably want
to use the JDK directory rather than the JRE directory because
the javac compiler is only in the JDK....

MS



wafa jaballah wrote:
> 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
> 
> 
> /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?
> 
> 
> kind regards,
> 
> 
> -- 
> Wafa Ben Jaballah
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

Reply via email to