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 10.
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.
When I trying out with openjdk 8, it is working fine but OpenJDK does not have jdk10. Intellij idea version - ULTIMATE 2017.2
Please help since I am stuck here for last 3 days.