I have JDK 7 installed on my machine, but I want to compile JDK 8 using IntelliJ IDEA.
In the window that opens when you select Help > About , the following line exists:
JRE: 1.8.0_51-b16 x86
Well, the IDE runs in Java 8. In fact , it says here:
The JDK comes with all product installers and recommends using the provided version of the JDK if you don't encounter any specific problems.
It's great! I also have to use the version with my projects. But where is the JDK located?
When choosing the source directory for a new project, the default path is C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.1\jre , but it does not work.
The selected directory is not a valid JDK home
After learning a bit, I found C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.1\jre\jre\bin . It contains many files, even some of them are called java.exe and javaw.exe , but it does not work.
So where is the home directory for the supplied version of the JDK with IDEA?
source share