Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upgrade eclipse to java 8

I am trying to update my eclipse environment to java 8. I installed the jdk and jre version 8. I also did this:

https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler

then in project -> properties -> java build path -> JRE system libraries -> edit -> execution environment -> JavaSE-1.8(unbound) which is the only option that has java 8 in its name. but when I select it it says : No JREs in workspace compatible with specified execution environment: JavaSE-1.8

like image 422
Andisheh Keikha Avatar asked Mar 24 '14 19:03

Andisheh Keikha


People also ask

How do I change my Java from 11 to 8 in Eclipse?

In eclipse go to Window -> Preferences -> Java -> Compiler , there you can change the java versions.

Does Eclipse still support Java 8?

A Java 8 or newer JRE/JDK is required to run all Eclipse 2019-03 packages based on Eclipse 4.11, as well as the Installer.


2 Answers

Go to Window | Preferences. Then under Java | Installed JREs, click "Add", click "Standard VM", then "Next", then "Directory", and find the location where you installed JDK 1.8.

Lastly, make sure the checkbox next to it, on the list of installed JREs, is switched on.

like image 169
Dawood ibn Kareem Avatar answered Oct 09 '22 01:10

Dawood ibn Kareem


In OS X, go to Preference and choose Java | Installed JREs. Then click search it would show JAVA SE 8 if you have already installed JAVA SDK 8. enter image description here

like image 21
Fantasy Fang Avatar answered Oct 09 '22 03:10

Fantasy Fang