Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Error while compilling program on Linux Date: Tue, 10 May 2011 20:46:47 +0000 (UTC) Organization: UK Free Software Network Lines: 28 Message-ID: References: <14db58a7-1f7f-4a8d-89d4-b27559860fff@d1g2000yqm.googlegroups.com> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1305060407 30172 84.45.235.129 (10 May 2011 20:46:47 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Tue, 10 May 2011 20:46:47 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3937 On Mon, 09 May 2011 22:54:41 -0700, ruds wrote: > 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 > So, have you updated your distro during the 10 days since it was working correctly? If so, what packages were upgraded or installed, either as part of a distro update or explicitly?? > this is happening even if I expicitly set the $CLASSPATH. > As others have said, this is irrelevant. More to the point, what's in $PATH and $JAVA_HOME? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |