On Jul 7, 2006, at 7:43 AM, Marcus Phillips wrote:

I am trying to install and run tinyos on Red Hat EL4. I get most of the way through the installation, but a series of errors about enum.

an example is

/opt/tinyos-1.x/tools/java/net/tinyos/sim/event/SimEventBus.java: 180: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
Enumeration enum = getEventListeners().elements();


I have installedIBMJava2-142-ia32-SDK -1.4.2-5.0.i386.rpm and IBMJava2-JAVACOMM-1.4.2-5.0.i386.rpm, as the webpage ordered. I believe the java compiler (javac) is the cause of these errors. However, I cannot add the -source 1.4, as the compiler is being called from within the rpm.

Any help working around this issue would be greatly appreciated.


enum was made a Java keyword in 1.5, I believe. So if you are encountering this issue, then the RPM is invoking a 1.5 javac. You probably have one on your system.

Phil

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

Reply via email to