tptak tptak - 4 months ago 28
Java Question

How to create Java 8 project in IntelliJ IDEA 13.1?

I want to try IntelliJ IDEA 13.1, so I've installed the enterprise edition for evaluation. Also, I have installed JDK8u11 64 bit. I am using Windows 8.1.

When I try to create new project, I need to select JDK. I am able to choose JDK7, but JDK8 is not accepted with message "The selected directory is not a valid home for JDK".

Error window

Based on "The selected directory is not a valid home for JDK" Android Studio I've set JAVA_HOME to point to C:\Software\Java\jdk1.8.0 where JDK8u11 is installed, with no effect. I have also run IntelliJ IDEA in Administrator mode, without success.

I'm a bit stuck here. Am I missing something?


A copy of my answer in the comments so that @tptak can graciously give me credit for the correct answer. Thanks.

Make sure the dir you select has the bin, jre and lib directories. Could you have a double jdk1.8.0 dir name (or some such thing) from an error when setting the install dir during install?