mac系统刚安装的idea打不开的问题及解决
作者:java叶新东老师
问题
当我点击最下面任务栏的idea图标,跳了一下之后就再也没反应了
什么提示也没有,咱也不知道啥问题啊,但是咱会百度啊,百度说是让我点进去应用程序 --> 在idea上右击-> 显示报内容
进入包内容后,双击 Comtents/MacOs/idea文件,
然后会在控制台打印一连串的信息
To update your account to use zsh, please run `chsh -s /bin/zsh`.For more details, please visit https://support.apple.com/kb/HT208050.macdeMacBook-Pro:~ mac$ /Users/mac/Downloads/IntelliJ\ IDEA.app/Contents/MacOS/idea ; exit;2021-07-13 10:07:06.765 idea[1409:27630] allVms required 1.8*,1.8+2021-07-13 10:07:06.768 idea[1409:27636] Current Directory: /Users/mac2021-07-13 10:07:06.768 idea[1409:27636] Value of IDEA_VM_OPTIONS is (null)2021-07-13 10:07:06.768 idea[1409:27636] Processing VMOptions file at /Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions2021-07-13 10:07:06.768 idea[1409:27636] DoneOpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.Error opening zip file or JAR manifest missing : JetbrainsCrack-3.1-release-enc.jarError occurred during initialization of VMagent library failed to init: instrumentlogoutSaving session......copying shared history......saving history...truncating history files......completed.
[进程已完成]
我们重点关注这一行
Error opening zip file or JAR manifest missing : JetbrainsCrack-3.1-release-enc.jar.
这一行代码是告诉你出现问题出在哪,告诉我们找不到这个jar打开失败了,或者是这个jar根本就不存在,但是我们根本就没用过这个jar包;并且上面也告诉我们是在哪个文件报错了:
2021-07-13 10:07:06.768 idea[1409:27636] Processing VMOptions file at /Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
所以我们直接打开
/Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
这个文件,输入命令:
vim /Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
可以看到最后一行多了个 -javaagent:JetbrainsCrack-3.1-release-enc.jar
,这是我之前破解文件用过的jar包,但在这里我们已经用不到了,所以将其删除;
删掉之后idea就可以打开了
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。