This is what my CLASSPATH variable looks like:
xadministra...@945-tst9 /opt/tinyos-2.x/apps/RadioCountToLeds
$ echo $CLASSPATH
cygpath -w $TOSROOT/support/sdk/java/tinyos.jar;.
This is what the output looks like when I try compiling the program:
xadministra...@945-tst9 /opt/tinyos-2.x/apps/RadioCountToLeds
$ make micaz
mkdir -p build/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) {
^
RadioCountMsg.java:76: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int
base_offset, int da
ta_length) {
^
RadioCountMsg.java:18: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:24: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:33: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:42: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:51: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:60: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:69: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:78: cannot find symbol
symbol : method amTypeSet(int)
location: class RadioCountMsg
amTypeSet(AM_TYPE);
^
RadioCountMsg.java:134: cannot find symbol
symbol : method getUIntBEElement(int,int)
location: class RadioCountMsg
return (int)getUIntBEElement(offsetBits_counter(), 16);
^
RadioCountMsg.java:141: cannot find symbol
symbol : method setUIntBEElement(int,int,int)
location: class RadioCountMsg
setUIntBEElement(offsetBits_counter(), 16, value);
^
13 errors
make: *** [RadioCountMsg.class] Error 1
On Jun 16, 2010, at 15:24, Michael Schippling <[email protected]> wrote:
If you are on MSWidows, do not use the /opt/... syntax in Java CP
settings, it is specific to cygwin.dll users, of which Java is not.
Use the full path, e.g.: C:/cygwin/opt/...
MS
Stefano "Kismet" Lenzi wrote:
On Wed, Jun 16, 2010 at 18:51, John <[email protected]> wrote:
I'm trying to make the TestSerial program for micaz motes on tiny os
2.x but I keep receiving errors such as package net.tinyos.message
does not exist and I thought I set my environment values
correctly. Is
it possible that something else is wrong. Thanks for any help.
Can you check the value of the CLASSPATH enviroment vvariable? From
the command line you can use the command
echo $CLASSPATH
If the classpath is not empty check if it points to a directory
containg class files or to a tinyos.jar file, if the CLASSPATH is
empty you should set it to the absulte path which points to the
tinyos.jar contained inside the tinyos installation folder, usually
it
should be /opt/tinyos-2.1.1/support/sdk/java/tinyos.jar
you can use the command
export CLASSPATH="/opt/tinyos-2.1.1/support/sdk/java/tinyos.jar" for
setting the classpath
--
John
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help