Eclipse->New Android Projects always compile java 1.4
-
28-05-2021 - |
Frage
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?
Lösung
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.
Andere Tipps
Window->Preferences->Java->Compiler
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow