IDEA 启动报错could not find main class com/intellij/idea/main解决办法

1.现象:

安装完首次打开 intellij 出现 could not find main class com/intellij/idea/main?

2:解决办法

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.

这是英文文档里的内容,大致意思是说,你可以在环境变量中创建一个叫做IDEA_JDK_64的配置,地位等同于java_home,idea会优先读取这个配置,如此一来,idea可以启动,具体项目用哪个版本进去之后再设置也ok,两不耽误

注意:加了IDEA_JDK_64之后,path变量里也要加,就是把之前的%java_home%复制一份,然后改成%IDEA_JDK_64%

方法已经知道了那就试试



亲测可用.

参考文献: 

安装教程:http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/introduce.html

破解教程:https://www.cnblogs.com/zqr99/p/8708069.html 

ps:这篇文章是按照我的另一篇开源中国的文章编写,并非抄袭.


评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值