Trouble installing OpenJDK 12 into Eclipse 2019-12

386 Views Asked by At

I have a new laptop and installed Eclipse 2019-12. I also downloaded OpenJDK12 (12.0.1) because I have a project which needs that version. I have unzipped the jdk into C:\Program Files\java\jdk-12.0.1. When I try to add the version to Eclipse, though, I get the following error: Target is not a JDK Root. Java executable was not found

enter image description here

I can't install the Java 12 2019-03 support patch because it tells me that it's not compatible with my version. Can anyone offer some advice?

1

There are 1 best solutions below

0
On

Sample JDK image

Go to Eclipse > Preference > select Java > click on "Installed JREs" > Browse in JRE Home directory > select the JDK folder before bin directory > Finish

FYI: Attached a sample JDK

Reinstall the JDK 12 if still not working