1

My Intellij IDEA 2017.1.3 on macOS Sierra is not picking up Java SDK path even on setting it up to /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home

Am I missing something?

Error screenshot

Sahil
  • 13
  • 1
  • 5
  • See this.. [https://stackoverflow.com/questions/16765726/how-to-set-intellij-idea-project-sdk](https://stackoverflow.com/questions/16765726/how-to-set-intellij-idea-project-sdk) – Porkko M May 24 '17 at 05:29
  • 1
    Possible duplicate of [How to set IntelliJ IDEA Project SDK](https://stackoverflow.com/questions/16765726/how-to-set-intellij-idea-project-sdk) – Sergey May 24 '17 at 05:31
  • please see the comment of [How to set IntelliJ IDEA Project SDK](https://stackoverflow.com/questions/16765726/how-to-set-intellij-idea-project-sdk). – holi-java May 24 '17 at 06:35

1 Answers1

0

The default path to the JDK folder should end up in the bin folder.

In windows this would be something like: C:\Program Files\Java\jdk1.8.0_121\bin

And linux something like: /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/bin/java

Reinstalling the JDK would fix all issues anyhow. You can also check your java version (to see if it's properly installed) by typing either in cmd or terminal java -version

nic3ts
  • 347
  • 1
  • 2
  • 13