解决mac系统刚安装的idea打不开的问题

发布时间:2022-03-01 10:58:34 作者:yexindonglai@163.com 阅读(3336)

问题

当我点击最下面任务栏的idea图标,跳了一下之后就再也没反应了
在这里插入图片描述
什么提示也没有,咱也不知道啥问题啊,但是咱会百度啊,百度说是让我点进去应用程序 —> 在idea上右击-> 显示报内容
在这里插入图片描述
进入包内容后,双击 Comtents/MacOs/idea文件,
在这里插入图片描述
然后会在控制台打印一连串的信息

  1. To update your account to use zsh, please run `chsh -s /bin/zsh`.
  2. For more details, please visit https://support.apple.com/kb/HT208050.
  3. macdeMacBook-Pro:~ mac$ /Users/mac/Downloads/IntelliJ\ IDEA.app/Contents/MacOS/idea ; exit;
  4. 2021-07-13 10:07:06.765 idea[1409:27630] allVms required 1.8*,1.8+
  5. 2021-07-13 10:07:06.768 idea[1409:27636] Current Directory: /Users/mac
  6. 2021-07-13 10:07:06.768 idea[1409:27636] Value of IDEA_VM_OPTIONS is (null)
  7. 2021-07-13 10:07:06.768 idea[1409:27636] Processing VMOptions file at /Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
  8. 2021-07-13 10:07:06.768 idea[1409:27636] Done
  9. OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
  10. Error opening zip file or JAR manifest missing : JetbrainsCrack-3.1-release-enc.jar
  11. Error occurred during initialization of VM
  12. agent library failed to init: instrument
  13. logout
  14. Saving session...
  15. ...copying shared history...
  16. ...saving history...truncating history files...
  17. ...completed.
  18. [进程已完成]

我们重点关注这一行:
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这个文件,输入命令:

  1. vim /Users/mac/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions

可以看到最后一行多了个 -javaagent:JetbrainsCrack-3.1-release-enc.jar,这是我之前破解文件用过的jar包,但在这里我们已经用不到了,所以将其删除;
在这里插入图片描述

删掉之后idea就可以打开了
在这里插入图片描述
在这里插入图片描述

关键字Java