The selected directory is not a valid home for JDK

Answered

Hi I have installed jdk 10 in ubuntu 16.0.4 using following commands.

sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install oracle-java10-installer

Below link I followed to install java.

https://stackoverflow.com/questions/49507160/how-to-install-jdk-10-under-ubuntu

After installation I am checked with following commands.

java -version

javac -version 

They are showing correct versions.

I tried the both options of installation but when I am giving jdk path form intellij I am getting 

"The selected directory is not a valid home for JDK'' error.

attaching screen shot of the screen intellij

Please help since I am stuck here from last 3 days.

0
1 comment

Hi, what version of IDEA do you use?

0

Please sign in to leave a comment.