[Tinyos-help] Problem in Jni
david_henry_il at hotmail.com
Wed Feb 20 01:23:43 PST 2008
I've just had the same problem and manage to cobble up a fix.
1. Set up environment variables correctly in your .bashrc script
# TOSROOT MUST be defined before it is referenced
export CP1=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
export CP2=`cygpath -w $TOSROOT/support/sdk/java`
# add java javac paths to PATH variable
export PATH2. Correct the tos-install-jni script.# find out where tos-install-jni is located
# cd to that directory
# make a copy of the original file then edit it
cp tos-install-jni tos-install-jni.orig
sed "s/Darwin/`uname`/" < tos-install-jni.orig > tos-install-jni
# finally, execute it
tos-install-jniThis works for me, hope it does for you as well!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tinyos-help