mac 启动idea闪退,显示Cannot load JVM bundle...Value of IDEA_VM_OPTIONS is (null)

时间:2025-03-18 16:32:20

打开应用程序idea下面的包内容,MacOS/idea双击打开,显示如下的报错:

Last login: Wed Jul 21 10:25:35 on ttys000
/Applications/IntelliJ\ /Contents/MacOS/idea ; exit;
lyuwalle@lyuwalle ~ % /Applications/IntelliJ\ /Contents/MacOS/idea ; exit;
2021-07-21 10:25:44.347 idea[2312:81949] allVms required 1.8*,1.8+
2021-07-21 10:25:44.349 idea[2312:81953] Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Applications/IntelliJ /Contents/jbr/Contents/MacOS/): no suitable image found.  Did find:
	/Applications/IntelliJ /Contents/jbr/Contents/MacOS/: mach-o, but wrong architecture
	/Applications/IntelliJ /Contents/jbr/Contents/MacOS/: mach-o, but wrong architecture" UserInfo={NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=/Applications/IntelliJ /Contents/jbr/Contents/MacOS/, NSDebugDescription=dlopen_preflight(/Applications/IntelliJ /Contents/jbr/Contents/MacOS/): no suitable image found.  Did find:
	/Applications/IntelliJ /Contents/jbr/Contents/MacOS/: mach-o, but wrong architecture
	/Applications/IntelliJ /Contents/jbr/Contents/MacOS/: mach-o, but wrong architecture, NSBundlePath=/Applications/IntelliJ /Contents/jbr, NSLocalizedDescription=The bundle “OpenJDK 11.0.11” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
2021-07-21 10:25:44.349 idea[2312:81953] Retrying as x86_64...
2021-07-21 10:25:44.390 idea[2312:81955] allVms required 1.8*,1.8+
2021-07-21 10:25:44.392 idea[2312:81968] Current Directory: /Users/lyuwalle
2021-07-21 10:25:44.392 idea[2312:81968] Value of IDEA_VM_OPTIONS is (null)
2021-07-21 10:25:44.392 idea[2312:81968] Processing VMOptions file at /Users/lyuwalle/Library/Application Support/JetBrains/IntelliJIdea2021.1/
2021-07-21 10:25:44.393 idea[2312:81968] Done
Improperly specified VM option 'SoftRefLRUPolicyMSPerMB=50Å'
Improperly specified VM option 'SoftRefLRUPolicyMSPerMB=50Å'
2021-07-21 10:25:44.441 idea[2312:81968] JNI_CreateJavaVM (/Applications/IntelliJ /Contents/jbr) failed: -6
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

原因是文件冲突,删除下面文件夹下面的(资料库Library是一个隐藏的文件夹)
/Users/XXXX/Library/Application Support/JetBrains/IntelliJIdea2020.1/