When first launching IntelliJ IDEA Community Edition 14.0.2 on Windows 7 x64 I received the following error when trying to import the sample libGDX gradle config:
Intellij 14 the supplied javaHome seems to be invalid
The IDE is looking in C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.2\jre
for the java runtime, but the files exist in a sub directory off this one: C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.2\jre\jre
.
My solution was to copy the contents of jre\jre
up one level to jre
, which solved the problem - but doesn't feel like the right thing to do.
Is this an acceptable solution, or is there a 'better way' to solve this? It feels strange to me that the default install is not in the correct location; but there might be something environmental that I'm not quite understanding.
This was recorded as a duplicate, but it is not - it is a different product. Android Studio is a different product to IntelliJ-Idea.