IDEA startup error could not find main class com/intellij/idea/main solution

1. Phenomenon:

After installation, open intellij for the first time and appear could not find main class com/intellij/idea/main?

2: Solution

You should create IDEA_JDK_64 environment variable and set its value to JDK8 instance location on your computer. 
This JDK8 instance can be used only for idea and JAVA_HOME can point to the Java 7 at the same time without any problems. 
Via documentation: 
idea64.exe uses this JDK search sequence: 
IDEA_JDK_64 environment variable 
..\jre64 directory 
system Registry 
JDK_HOME environment variable 
JAVA_HOME environment variable 
JAVA_HOME can point to the Java 7 at the same time with no problems.

This is the content of the English document, which roughly means that you can create a configuration called IDEA_JDK_64 in the environment variable. The status is equivalent to java_home, and idea will read this configuration first. In this way, idea can be started, and specific projects use Which version is entered and then set up is ok, without delay

Note: After adding IDEA_JDK_64, the path variable should also be added, that is, copy the previous %java_home%, and then change it to %IDEA_JDK_64%

 

Pro test available.

3: References

For the use, installation and configuration of idea, you can refer to a series of articles from Geek Academy (not advertising)

    http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/introduce.html

For the cracking method, please refer to:

https://www.cnblogs.com/zqr99/p/8708069.html 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324939437&siteId=291194637