Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3899
| From | ruds <rudranee@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Error while compilling program on Linux |
| Date | 2011-05-09 22:54 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <14db58a7-1f7f-4a8d-89d4-b27559860fff@d1g2000yqm.googlegroups.com> (permalink) |
Hi, I want to execute a program on linux but it is giving me an error: "Syntax error, 'for each' statements are only available if source level is 5.0" I have JDK 1.6 installed and my JAVA_HOME and CLASSPATH variable are having the paths correct, still I'm getting this error. On checking the version: javac -version I'm getting: Eclipse Java Compiler v_677_R32x, 3.2.1 release this is happening even if I expicitly set the $CLASSPATH. I have set CLASSPATH in my .profile too. This program was working perfectly 10 days ago and now suddenly it has started giving errors. What might be the problem? Please help.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Error while compilling program on Linux ruds <rudranee@gmail.com> - 2011-05-09 22:54 -0700
Re: Error while compilling program on Linux Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-10 08:04 +0000
Re: Error while compilling program on Linux Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-05-10 09:47 +0100
Re: Error while compilling program on Linux Martin Gregorie <martin@address-in-sig.invalid> - 2011-05-10 20:46 +0000
Re: Error while compilling program on Linux ruds <rudranee@gmail.com> - 2011-05-10 22:49 -0700
Re: Error while compilling program on Linux Roedy Green <see_website@mindprod.com.invalid> - 2011-05-11 03:06 -0700
Re: Error while compilling program on Linux Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-05-11 14:47 +0100
Re: Error while compilling program on Linux Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-11 15:31 +0000
Re: Error while compilling program on Linux Lew <noone@lewscanon.com> - 2011-05-11 16:01 -0400
csiph-web