unable to find home directory for JDK
Answered
I am using windows. In command prompt, I see openjdk installed::
C:\Users\rsr>java -version
openjdk version "1.8.0_302"
OpenJDK Runtime Environment Corretto-8.302.08.1 (build 1.8.0_302-b08)
OpenJDK 64-Bit Server VM Corretto-8.302.08.1 (build 25.302-b08, mixed mode)
In intellij IDEA, I open new project, select Java, then trying to add JDK in project SDK. But I am not finding the right path that intellij accepts. I see there is C:\Program Files\Java and there is a jre8 directory under it (but no jdk directory). I see javac.exe in C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.1\jbr\bin.
What is the right directory intellij is looking for? What do I need to do here?
Please sign in to leave a comment.
problem was resolved after reinstalling jdk