Changing eclipse java compiler in jdk7

I am trying to upgrade from jre6 and jdk6 to jre7 and jdk7. I program with eclipse, download and install jre7 and jdk7: C: \ program files \ java \ now that I enter eclipse I want to change the compiler used, so I go to: Window> Settings> Java> compiler but only appears 1,3,1,4,1,5 and 1,6 I also added: window> preferences> java> Installed JREs and added a version of jre7. But I can not change the compiler. How to change your eclipse compiler?

+8
java compiler-construction eclipse java-7
source share
4 answers

You need to update at least the Eclipse Indigo SR1 , which has been released for more than a month. See Also Eclipse Announces Full Java 7 Support .

As proof, here is a screen from my Indigo SR1 settings:

enter image description here

And here is an example of executable code using a diamond operator and ARM:

enter image description here

+12
source share

You need a newer version of Eclipse. Not less than 3.7SR1.

+3
source share

3.6 The version of Eclipse is enough. I use the same with JDK1.7

0
source share

Go to Window > Preferences >Java > Installed JREs .

Then click Add... and select Standard VM .

You need to specify the directory of your JRE and give it a name.

When you are done, just check the correct JRE in the same window.

By default, the verified JRE is added to the build path of the newly created Java projects.

(my version of the Eclipse SDK is 3.7.0)

-one
source share

All Articles