Hi, I'm trying to get the TOSSIM (TinyOS 2.1.1-3) setup working in my Windows 7 64 bit environment with JDK 1.6. I have gone through all the steps given in the TinyOS wiki for Cygwin based installation and also read the Primer written by Geoffrey Lo (http://www.geoffreylo.com/resources/tinyos-primer/).
I am following the steps given in the TOSSIM wiki ( http://docs.tinyos.net/tinywiki/index.php/TOSSIM). I could get the Blink app to compile, but when I tried the next step: $ cd tinyos-2.x/apps/RadioCountToLeds $ make micaz sim I get the following errors: $ make micaz sim mkdir -p simbuild/micaz mig python -target=micaz -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"RonakSutaria\" -DIDENT_HOSTNAME=\"RonakSutaria-PC\" -DIDENT_USERHASH=0x6b9a8aa1L -DIDENT_TIMESTAMP=0x50853831L -DIDENT_UIDHASH=0x232033beL -python-classname=RadioCountMsg RadioCountToLeds.h radio_count_msg -o RadioCountMsg.py mig java -target=micaz -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"RonakSutaria\" -DIDENT_HOSTNAME=\"RonakSutaria-PC\" -DIDENT_USERHASH=0x6b9a8aa1L -DIDENT_TIMESTAMP=0x50853831L -DIDENT_UIDHASH=0x232033beL -java-classname=RadioCountMsg RadioCountToLeds.h radio_count_msg -o RadioCountMsg.java 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 ^ RadioCountMsg.java:89: ';' expected =0x"+Long.toHexString(get_nx_struct radio_count_msg 2 6 ^ RadioCountMsg.java:90: illegal start of expression ())+"]\n"; ^ RadioCountMsg.java:90: ';' expected ())+"]\n"; ..... errors Cont'd In the RadioCountMsg.java that was created in the above step, I see that there are these problems (on line 88): public String toString() { String s = "Message <RadioCountMsg> \n"; try { s += " [nx_struct radio_count_msg 2 6 =0x"+Long.toHexString(get_nx_struct radio_count_msg 2 6 ())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } Is there something wrong with my environment? I checked for the tos-locate-jre --jni and tos-install-jni steps and after a lot of debugging was able to get the tos-locate-jre to work in my 64 bit env (I had to edit this line: jversion=`regtool -q -w get "\\HKLM\\SOFTWARE\\JavaSoft\\Java Development Kit\\CurrentVersion"`) in tos-locate-jre to work with 64bit JDK). After this the tos-install-jni succeeded. tos-check-env has not thrown up an error. Hence, I'm not sure where else to look for environment related problems. Any help will be greatly appreciated! Regards, Ronak
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
