문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

Window->Preferences->Java->Compiler

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top