I have IntelliJ IDEA Ultimate Edition 2022.1 installed, but when I tried to launch idea64.exe, I got the following popup message:
The environment variable JAVA_HOME (with the value of C:\Program Files\Java\jdk1.8.0_341) does not point to a valid JVM installation.
I do have the JDK with the path C:\Program Files\Java\jdk1.8.0_341. To verify, I went into the bin folder and was able to execute java.exe manually.
Next, from the command window, I changed JAVA_HOME to C:\Program Files\Java\jre-11.0_15.1. This time idea64.exe could be launched successfully.
What is the reason that it cannot launch when JAVA_HOME points to a Java 8 JDK, but can launch when JAVA_HOME points to a Java 11 JRE?