Dear Jorge,
I had the same problem and solved it by adding some more path information (extend path for java). To set them automatically I put a script "tinyos.sh" in the directory "c:/cygwin/etc/profile.d" with the following content: ------------ TOSROOT="/opt/tinyos-2.x" export TOSROOT TOSDIR="$TOSROOT/tos" export TOSDIR CLASSPATH="C:/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar;." export CLASSPATH MAKERULES="$TOSROOT/support/make/Makerules" export MAKERULES PATH="/opt/msp430/bin:$PATH" export PATH # Extend path for java type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`:$PATH type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --javac`:$PATH echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH ------------ This script will run every time you open a shell (cygwin). Otherwise you can run it manually with "source c:/cygwin/etc/profile.d/tinyos.sh". If you also have installed TinyOS-1.x, you can put another script, e.g. "tinyos_1.sh ", in the same directory and source it, if you want to switch from T2 -> T1. ------------ TOSROOT="/opt/tinyos-1.x" export TOSROOT TOSDIR="$TOSROOT/tos" export TOSDIR CLASSPATH=`$TOSROOT/tools/java/javapath` export CLASSPATH MAKERULES="$TOSROOT/tools/make/Makerules" export MAKERULES # Extend path for java type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`:$PATH type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --javac`:$PATH echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH ------------- This can be simplified by adding an alias in "c:/cygwin/home/<user>/.bashrc": ------------ alias initT1='source c:/cygwin/etc/profile.d/tinyos.sh_T1' alias initT2='source c:/cygwin/etc/profile.d/tinyos.sh' ------------ Now I only have to type "initT1" or "initT2", if I want to use TinyOS-1.x or TinyOS-2.x. BTW: I changed the extension of my T1 script to avoid that both run on start up. Regards Ole -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jorge Eduardo Higuera P Gesendet: Mittwoch, 3. September 2008 21:23 An: [email protected] Betreff: [Tinyos-help] problem with java in Tinyos 2.1 Dear Friends I have a problem with compile Java files in Tinyos 2.1 but I dont discover the error! 1. check this command but its ok tos-check-env say " completed without error" 2. my PATHS in windows XP SP3 with cygwin are: C:\cygwin\etc\profile.d TOSROOT="/opt/tinyos-2.x" TOSDIR="$TOSROOT/tos" MAKERULES="$TOSROOT/support/make/Makerules" export TOSROOT TOSDIR MAKERULES JAVADIR CLASSPATH="c:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;." export CLASSPATH 3. I`m installed Java JDK 1.5 in this route C:\Archivos de programa\Java\jdk1.5.0_16 When compile my file apps/RadioCountToLeds: $ make tmote make javac command not found Please can any help me? I need other path for java?? thank in advance
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
