2

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.

Ashish
  • 14,295
  • 21
  • 82
  • 127

2 Answers2

4

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

Community
  • 1
  • 1
giampaolo
  • 6,906
  • 5
  • 45
  • 73
  • ok then is there any way I can update the eclipse automatically ? – Ashish Jan 24 '13 at 20:34
  • Help menu, Check for update. But I do not know if it works for major releases (yes for minor). I cannot test it for you since I have latest major one. – giampaolo Jan 24 '13 at 20:36
  • Yes, it works for major releases, here's how to do it: http://wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse%3F – Robert Mikes Dec 03 '14 at 11:40
0

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

Lee Meador
  • 12,829
  • 2
  • 36
  • 42