hello
I install tinyOS 2 
When I do the step number 4: Install TinyOS toolchain 
rpm -Uvh tinyos-tools-1.2.4-2.cygwin.i386.rpm
and I try
rpm -Uvh --force --ignoreos tinyos-tools-1.2.4-2.cygwin.i386.rpm
 
Java not found, not installing JNI code
 
And the command
$ tos-install-jni
Java not found, not installing JNI code
 
Path is
C:\cygwin\bin;C:\Sun\SDK\jdk\bin
Classpath
;;C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.;
 
 
$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing) 
--
I found this To see whether TinyOS finds the JDK, you can try the 
command:tos-locate-jre --jni tos-locate-jre tries to read the following two 
registry keys:\HKLM\SOFTWARE\JavaSoft\Java Development 
Kit\CurrentVersion\HKLM\SOFTWARE\JavaSoft\Java Development 
Kit\'$jversion'\JavaHomewhere '$jversion' is the value from the first registry 
key. I just setup these registry keys and everything worked fine. My guess is 
that inyour case the first registry key should have the value "1.5.0" and 
thesecond:\HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5.0\JavaHome 
="c:\JAVA\jdk1.5.0_11"  --
 But I do not know how I change the registry
 
 

Cannot find JNI error
If you try to run TestSerial and receive an error that Java cannot find TOSComm 
JNI support, this means the Java Native Interface (JNI) files that control the 
serial port haven't been correctly installed. Run the command tos-install-jni 
(on Linux, do this as the superuser). If this command does not exist, then you 
have either not installed the tinyos-tools RPM or it was installed incorrectly. 
The tos- commands are typically installed in /usr/bin. If you still cannot find 
the script, email tinyos-help.
 
 
thank you 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to