Solve the problem that idea does not respond to double-clicking (Error opening zip file or JAR manifest missing) Mac

Description: Since I used the jetbrains-agent.jar method to crack the old version, I clicked the icon after downloading the latest version of Idea and there was no response. 

Troubleshooting

1.. Find IntelliJ IDEA.app in the program--"Click "Show Package Contents" and click the file in the following directory

: /Applications/IntelliJ IDEA.app/Contents/MacOS/idea

get log:

2023-04-12 15:01:32.886 idea[3534:57327] allVms required 1.8*,1.8+

2023-04-12 15:01:32.889 idea[3534:57333] Current Directory: /Users/userName

2023-04-12 15:01:32.889 idea[3534:57333] parseVMOptions: IDEA_VM_OPTIONS = (null)

2023-04-12 15:01:32.889 idea[3534:57333] fullFileName is: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2023-04-12 15:01:32.889 idea[3534:57333] fullFileName exists: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2023-04-12 15:01:32.889 idea[3534:57333] parseVMOptions: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2023-04-12 15:01:32.889 idea[3534:57333] parseVMOptions: /Applications/IntelliJ IDEA.app.vmoptions

2023-04-12 15:01:32.892 idea[3534:57333] parseVMOptions: /Users/userName/Library/Application Support/JetBrains/IntelliJIdea2023.1/idea.vmoptions

2023-04-12 15:01:32.892 idea[3534:57333] parseVMOptions: platform=18 user=5 file=/Users/userName/Library/Application Support/JetBrains/IntelliJIdea2023.1/idea.vmoptions

Error opening zip file or JAR manifest missing : /Applications/IntelliJ_IDEA.app/Contents/lib/jetbrains-agent.jar

Error occurred during initialization of VM

agent library failed to init: instrument

My workaround:

1. Delete the files about the old version of Idea in the /Users/****/Library/Preferences directory

2. Delete the files about the old version of Idea in the /Users/***/Library/Application Support/JetBrains directory

3. Delete IntelliJ_IDEA.app in "Applications" 

4. Reinstall IntelliJ_IDEA.app

Done.

Guess you like

Origin blog.csdn.net/LOVE_sel/article/details/130117779