Hello to everyone,
 
I'm having a problem compiling with javac in Tinyos2.1 under windows xp.
I have searched through the forums, set the paths, and verify that at least the 
paths are the expected (or I hope so).
My settings are the following:
$ type java
java is hashed (/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin/java)
$ type javac
javac is hashed (/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin/javac)
$ tos-locate-jre --javac
/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin
$ tos-locate-jre --java
/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin
$ tos-locate-jre --jni
/cygdrive/c/Program Files/Java/jdk1.6.0_12/jre/bin
$ $CLASSPATH
$TOSROOT\support\sdk\java\tinyos.jar;
 
I tried to run make micaz sim in RadioCountToLeds folder and got the following 
errors:
$ make micaz sim
mkdir -p simbuild/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
^
RadioCountMsg.java:67: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset)
.....
 
After searching on the forums, I then tried the following:
1.
$ tos-install-jni
Installing 32-bit Java JNI code in /cygdrive/c/Program 
Files/Java/jdk1.6.0_12/jre/bin ...
done.
I still received the same errors
 
2. 
I navigated to the /opt/tinyos-2.x/support/sdk/java and executed the make 
command, getting
the following errors:... /opt/tinyos-2.x/support/sdk/java
make[1]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net'
... /opt/tinyos-2.x/support/sdk/java/net
make[2]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos'
... /opt/tinyos-2.x/support/sdk/java/net/tinyos
make[3]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos/packet'
... /opt/tinyos-2.x/support/sdk/java/net/tinyos/packet
ncg -o Serial.java -java-classname=net.tinyos.packet.Serial java 
/opt/tinyos-2.x/tos/lib/serial/Serial.h Serial.h
javac Serial.java
javac AbstractSource.java
AbstractSource.java:37: package net.tinyos.util does not exist
import net.tinyos.util.*;.......
 
3. I created a .java and .jar test files under the ../sdk/java directory amd 
have been compiled succesfully.
 
I'm in deadend and don't know what is the problem or at least what to check for.
 
Any feedback is much appreciated.
 
Best regards,
Lup.


      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to