I have installed openjdk-8 using,
sudo apt-get install openjdk-8-jdk
and set the path variable but, when I go to create a new maven project in Intellij, it asks me for a JDK. I selected the path /usr/lib/jvm/java-8-openjdk-amd64 and it does not accept this path as a valid path for a JDK.
Please help me to solve this problem.