安裝完首次打開 intellij 出現 could not find main class com/intellij/idea/main?
html
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.java
這是英文文檔裏的內容,大體意思是說,你能夠在環境變量中建立一個叫作IDEA_JDK_64的配置,地位等同於java_home,idea會優先讀取這個配置,如此一來,idea能夠啓動,具體項目用哪一個版本進去以後再設置也ok,兩不耽誤intellij-idea
注意:加了IDEA_JDK_64以後,path變量裏也要加,就是把以前的%java_home%複製一份,而後改爲%IDEA_JDK_64%ide
親測可用.this
對於idea的使用安裝及其配置,能夠參考極客學院的一系列文章(絕非打廣告)idea
http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/introduce.htmlspa
關於破解方法能夠參考:code