?idea 2020突然无法启动
现象:双击idea 2020的图标,无法打开idea,使用 idea.bat 也无法打开idea;
查看错误信息
双击 idea.bat,这个程序一闪而逝,需要修改这个文件,看看打印了什么错误信息,
在结尾加上一行 pause
然后再运行idea.bat,打印如下:
Picked up _JAVA_OPTIONS: -Xmx512M
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in
version 9.0 and will likely be removed in a future release.
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
请按任意键继续.
意思是【初始堆大小】设置为大于【最大堆大小】的值
查看配置文件
找到 idea.bat 中读取配置文件的地方:
修改 idea.bat,打印使用的配置文件
·
再次运行idea.bat
复制文件路径,
打开看看
改参数
把 xms值改小一点,例如512m,
打开 idea64.exe
网上很多人说,直接把调用的那个配置文件删掉,我删过,是能打开idea,就是得重新破解,所以我又撤销删除,然后通过修改配置文件的方式启动了idea。
参考:https://blog.csdn.net/xingzhe123456789000/article/details/106736699