0
votes

Hi I am in trouble while creating a new project. I can't link the JDK to the IDE.

enter image description here

Here a my env variables related to java :

JAVA HOME : /usr/lib64/jvm/jre-1.8.0-openjdk

JAVA ROOT : /usr/lib64/jvm/jre-1.8.0-openjdk

JAVA BINDIR : /usr/lib64/jvm/jre-1.8.0-openjdk/bin

What should I use ?

enter image description here

2

2 Answers

4
votes

The directories with jre in the name are just runtime environments, and don't include the entire JDK. Choose one of the actual JDK directories like java-1.8.0-openjdk-1.8.0

EDIT: looking at your screenshot, it looks like you don't actually have JDK 1.8 installed, just the JRE (since the java-1.8.0-openjdk-1.8.0 only contains jre), so you'll need to install that.