一、运行idea.exe没反应,idea.bat报错java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
解决办法:安装和idea版本匹配的JDK版本
问题原因:JDK版本和IDEA不匹配
定位过程:
1)修改idea安装目录下的idea.bat文件,在最后一行添加‘pause’
2) 双击此脚本,查看弹窗报错信息如下:
java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
3)根据报错信息得出,JDK版本不匹配,2021版本idea至少得jdk1.8
二、运行idea.exe报错Cannot find VM options file
解决办法:
编辑用户环境变量,删除idea相关的环境变量配置
问题原因:历史安装的IDEA破解版,相关环境变量配置未清理,二次安装更换路径导致冲突
定位过程:
1)修改idea安装目录下的idea.bat文件,在最后一行添加‘pause’
2) 双击此脚本,查看弹窗报错信息:
3)根据报错信息得知他找不到这个jar,开始怀疑中文问题,修改了非中文路径还是报相同的错;
4)经查看此脚本,发先此路径是系统变量控制,编辑环境变量,删除历史无关的IDEA配置;