Question

I have installed the JDK7 on my machine and I want it to add in the list of compiler enter image description here

I have tried adding JDK 7 in the list of installed JRE but it is still not appearing in the list of compiler compliance level.enter image description here

Could any one tell me how can I add JDK 7 into new compliance level.

Was it helpful?

Solution

Eclipse uses its own compiler (see What is the difference between javac and the Eclipse compiler?), so you won't find it if you use an old version of Eclipse (as probably your RSA is based on). Java 7 support is available for Eclipse 3.7.1 or higher (at the moment current stable is 4.2).

However, if you want to keep that version of Eclipse, you can create a new Builder using your JDK7 as base. To do this, go to Project and add a new Builder specifying where the javac is and the other options.

Look also at this question: Eclipse 3.5 and Java 7

OTHER TIPS

Looks like you have to use the 3.8 version of eclipse to get Java 7 support. But I noticed that some later versions of 3.7.x might have it too.

See this for features:

http://www.eclipse.org/jdt/ui/r3_8/Java7news/whats-new-java-7.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top