Mac 下IDEA无法启动的问题的解决
打开 访达->应用程序->IntelliJ IDEA ->显示包内容 :
显示包目录之后,按照下面提示操作:
双击执行上面的脚本之后,控制打印的信息如下:
Last login: Tue Feb 18 13:56:56 on console
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
qiuyuandeMacBook-Pro:~ drebander$ /Applications/IntelliJ\ IDEA\ 2.app/Contents/MacOS/idea ; exit;
2020-02-18 14:50:13.255 idea[970:27966] allVms required 1.8*,1.8+
2020-02-18 14:50:13.258 idea[970:27983] Value of IDEA_VM_OPTIONS is (null)
2020-02-18 14:50:13.259 idea[970:27983] Processing VMOptions file at /Users/drebander/Library/Preferences/IntelliJIdea2019.3/idea.vmoptions
2020-02-18 14:50:13.260 idea[970:27983] Done
OpenJDK 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 : ../bin/jetbrains-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...491 completed.
[进程已完成]
通过上面的idea的启动日志,知道启动不起来是又到缺少jar导致的:
在它报错的路径(idea的bin目录)下放上jar包jetbrains-agent.jar,双击启动idea。
成功启动~!
如果你的报错原因和我的一样,缺少jetbrains-agent.jar,却又不知道在哪里下载的话,可参照:
https://www.jianshu.com/p/5c24dad19e0a
中的第一步,下载代理包。
如果是之前使用的破解版,后面使用正版的idea,从官网下载之后,也会出现上面的现象,这个时候的解决办法是:
搜索在MAC上搜索jetbrains,会看到搜索结果
在上层文件夹中展示是这样子的
然后把这个文件夹删除调,删掉之后重新打开,就好了