[Tinyos-help] a question about Mote-PC serial communication and SerialForwarder

Michael Schippling schip at santafe.edu
Wed Mar 5 09:59:37 PST 2008


There may be something wrong with the install script
but I think all it does is copy  java/jni/libgetenv.so
to your JRE directory indicated. You could check to see
if it's there and has the right permissions.

MS


mohammed tarek wrote:
> I am working on a DCS project and I use five modules
> one of them as a base station which will collect data
> from other modules and deliver it to the pc in which I
> am working on linux plateform which I installed on it
> tinyos 2 with JDK5
> but when I install JDK6 with netbeans and try to
> include the java classes which works with my module
> such as serial forward and all the other and compile
> it successfully and try to run the serial forward
> program on it it gives me the followin message:
> getenv JNI library not found .Env.getenv will not work
> (run the tos-install-jni tool,see man tos-install-jni
> for more details)
> and when I swith to the root and install the jni
> through this command I see this message:
> [: 31: ==:unexpected operator
> Installing 32-bit Java JNI code in
> /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 ... done
> 
> and when I run the program again it gives me the same
> error and asked me to reinstall the jni again and when
> I installed it again through the terminal it gives me
> the same message
> [: 31: ==:unexpected operator
> Installing 32-bit Java JNI code in
> /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 ... done
> so can you help me in this problem please.
>                                    mohammed tarek
>                                    egypt
> 
> 
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



More information about the Tinyos-help mailing list