On Eclipse Mars I don't see 1.8 in the compiler compliance level menu

I'm using Eclipse Mars and I don't see 1.8 in the compiler compliance level menu.

enter image description here

Presumably this is because I used this option to import all my plugins from my Eclipse Kepler installation. It might also be the import preferences that are causing this problem. enter image description here

I added jdk 1.8 to Installed JREs. I tried deleting the .preferences folder and restarting my eclipse, but I still have a problem.

Any ideas?

EDIT: I tried to check for updates but no updates were found

+3


source to share


3 answers


I had the same problem. This was probably because I originally installed Eclipse Kepler (which does not support java 1.8. Compiler) and then updated it to Moon first and then Mars. I had to completely uninstall Eclipse and reinstall the newest version.



+1


source


You need to first select the appropriate java version on the project / build path

jdk selection



If you want to apply it globally, you not only need to add 1.8 JRE, but also select it as the default.

+2


source


If you have a shortcut to launch eclipse, edit it and add it -vm [path-to-jdk-1.8]/jre/Javaw.exe

after the path to eclipse.exe. You can also add code to your eclipse.ini, but make sure this is the first line. Subsequently, you could choose 1.8 in the global compliance level

0


source







All Articles