Question

Everytime I add/create or copy a Project inside my Eclipse-Workspace it will be recognized as a Java 1.4 Project, which leads to a sum of errors. I have to fix this myself under properties->java-compiler and check 1.6 there. So I have a few questions on that: Is it possible to pre-define which compiler Eclipse has to choose? Is there a config file telling eclipse which compiler to choose?

Était-ce utile?

La solution

Check under Window -> Preferences -> Java -> Compiler. There is "Compiler compliance level", it should be set to your desired level. :)

If that does not work, go to the "New Java Project" dialog and pres "Configure JREs". Make sure your desired JRE is selected.

Autres conseils

Window->Preferences->Java->Compiler

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top