Hello All,
I am having trouble compiling the RadioCountToLeds application in the /apps/
folder.
The make file contains the following lines:
RadioCountMsg.py: RadioCountToLeds.h
mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=RadioCountMsg
RadioCountToLeds.h radio_count_msg -o $@
RadioCountMsg.class: RadioCountMsg.java
javac RadioCountMsg.java
RadioCountMsg.java: RadioCountToLeds.h
mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=RadioCountMsg
RadioCountToLeds.h radio_count_msg -o $@
I have OpenJDK 1.6.0_23 and TinyOs2.1.1 installed on Ubuntu 11.10.
I get the following errors:
make micaz
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:88: unclosed string literal
s += " ; [nx_struct radio_count_msg 2 6
^
RadioCountMsg.java:89: illegal start of expression
=0x"+Long.toHexString(get_nx_struct radio_count_msg 2 6
^
RadioCountMsg.java:89: hexadecimal numbers must contain at least one
hexadecimal digit
=0x"+Long.toHexString(get_nx_struct radio_count_msg 2 6
^
RadioCountMsg.java:89: unclosed string literal
=0x"+Long.toHexString(get_nx_struct radio_count_msg 2 6
...
...
What is the problem here? I have Java 1.6 installed as specified
on the TinyOS page, and I can compile Blink for both micaz and micaz sim.
I hope that someone can help me.
Does this application need a different version of Java installed?
This java code needs to be produced for TOSSIM
so that we can use the Python script to inject packets into TOSSIM.
Thanks,
Ali Shareef
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help