Mac 下IDEA無法啟動的問題的解決


打開 訪達->應用程序->IntelliJ IDEA ->顯示包內容 :

 

 
image.png

 

顯示包目錄之后,按照下面提示操作:

 

 
image.png


雙擊執行上面的腳本之后,控制打印的信息如下:

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,會看到搜索結果

 

 
image.png

 

在上層文件夾中展示是這樣子的

 

 
image.png


然后把這個文件夾刪除調,刪掉之后重新打開,就好了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM