Can't open IntelliJ on MacOs
Answered
When launching IntelliJ Ultimate (2016.3) I get:
The application “IntelliJ IDEA” can’t be opened.
Tried restarting and reinstalling, for no luck.
Please sign in to leave a comment.
Rajeshchilukuri Tech
https://youtrack.jetbrains.com/issue/IDEA-274515 is likely the case. Sorry for the inconvenience. Reinstalling should help.
Простите что по русски)
Неожиданное завершение intellij IDEA 2021.3.2. Версия MacOS 10.15.7.
Устанавливал и более раннюю версию - не помогло. CE работает прекрасно. Удалял CE, переустанавливал, результат не изменился.
Заранее благодарю за помощь
Awlwlb попробуйте шаги из https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559.
Если не помогает, запустите из командной строки и предоставьте лог: https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line.
По-русски лучше писать напрямую через тикет в поддержку: https://intellij-support.jetbrains.com/hc/requests/new.
Hi, Serge, I have the same problem with launching the IntelliJ IDEA. I've downloaded the file "idealU-2022.1.2-aarch64.dmg". It was dragged to Applications, but still not starts. Icon appears in the Dock, but then nothing happens. Could you please help me in this question? Thank you in advance.
Vladimir Barikov 85 We need the full log from the command line after starting the IDE in the terminal per https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line.
If it freezes, we'd also need the thread dumps via jstack: https://intellij-support.jetbrains.com/hc/en-us/articles/206544899.
You can upload the files at https://uploads.jetbrains.com and provide the ID here or create a ticket with the files attached at https://intellij-support.jetbrains.com/hc/requests/new.
Hi Serge,
I installed JAVA JDK actual version and then I reinstalled EDI. It works now.
Thank you for support.
Hi Serge Baranov,
My mac is Intel based. I have downloaded intel based Intellij 2022.2 from the https://www.jetbrains.com/toolbox/app But unfortunately am not able to open the application via terminal. Please find the below log. Kindly assist me on how to fix this.
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2022-08-08 22:22:05.253 idea[1464:43479] allVms required 1.8*,1.8+
2022-08-08 22:22:05.257 idea[1464:43486] Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: 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 IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib, NSDebugDescription=dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture, NSBundlePath=/Applications/IntelliJ IDEA.app/Contents/jbr, NSLocalizedDescription=The bundle “JBR-17.0.3+7-469.32-jcef 17.0.3” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
Thanks in Advance,
Narmatha
Narmaselvi97 Please use this version: https://download.jetbrains.com/idea/ideaIU-2022.2.dmg.
Thanks for the help! Serge Baranov, It worked. May i know why the issue came up in my previous installation
Hello! @Serge Baranov
Could you please help me look into this issue?
It seems the InteliJ cannot opent for I changed the heap size?
Here's the error message I got:
Last login: Thu Aug 11 15:36:22 on console
zhhshan@88665a51fdb2 ~ % /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2022-08-11 15:41:15.149 idea[2120:15185] allVms required 1.8*,1.8+
2022-08-11 15:41:15.151 idea[2120:15188] Current Directory: /Users/zhhshan
2022-08-11 15:41:15.151 idea[2120:15188] parseVMOptions: IDEA_VM_OPTIONS = (null)
2022-08-11 15:41:15.151 idea[2120:15188] fullFileName is: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2022-08-11 15:41:15.151 idea[2120:15188] fullFileName exists: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2022-08-11 15:41:15.151 idea[2120:15188] parseVMOptions: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
2022-08-11 15:41:15.151 idea[2120:15188] parseVMOptions: /Applications/IntelliJ IDEA.app.vmoptions
2022-08-11 15:41:15.154 idea[2120:15188] parseVMOptions: /Users/zhhshan/Library/Application Support/JetBrains/IntelliJIdea2021.3/idea.vmoptions
And I've tried removing idea.vmoptions.
2022-08-11 15:41:15.154 idea[2120:15188] parseVMOptions: platform=17 user=4 file=/Users/zhhshan/Library/Application Support/JetBrains/IntelliJIdea2021.3/idea.vmoptions
Invalid initial heap size: -Xms2048m -Xmx2048m
Invalid initial heap size: -Xms2048m -Xmx2048m
2022-08-11 15:41:15.163 idea[2120:15188] JNI_CreateJavaVM (/Applications/IntelliJ IDEA.app/Contents/jbr) failed: -6
P.S. I've tried removed/edited the idea.vmoptions file; reinstall still cannot resolve the problem.
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=2048m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
Huishanzhang2021 There are two vmoptions files, make sure none of them contains invalid options:
There may be also OS wide environment variables set that override the VM options:
Run `env` command in the Terminal to ensure you don't have any of these set.
Hello, i have such a problem:
paule@Paules-Air ~ % /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2022-10-12 09:29:31.299 idea[902:11564] allVms required 1.8*,1.8+
2022-10-12 09:29:31.300 idea[902:11564] Found Java Virtual Machines:
2022-10-12 09:29:31.300 idea[902:11564] /Applications/IntelliJ IDEA.app/Contents/jbr
2022-10-12 09:29:31.300 idea[902:11564] Required VMs: 1.8*,1.8+
2022-10-12 09:29:31.301 idea[902:11564] Chosen VM:
2022-10-12 09:29:31.301 idea[902:11564] /Applications/IntelliJ IDEA.app/Contents/jbr
2022-10-12 09:29:31.303 idea[902:11568] Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib) => false, 'tried: '/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))), '/usr/lib/libjli.dylib' (no such file)'" 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 IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib, NSDebugDescription=dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib) => false, 'tried: '/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))), '/usr/lib/libjli.dylib' (no such file)', NSBundlePath=/Applications/IntelliJ IDEA.app/Contents/jbr, NSLocalizedDescription=The bundle “JBR-17.0.4.1+7-469.62-jcef 17.0.4.1” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
rosetta_has_been_previously_installed: true
2022-10-12 09:29:31.308 idea[902:11568] Retrying as x86_64...
arch: posix_spawnp: /Applications/IntelliJ IDEA.app/Contents/MacOS/idea: Bad CPU type in executable
paule@Paules-Air ~ %
P Dmitrijevaite Please make sure to download IntelliJ IDEA for your CPU architecture at https://www.jetbrains.com/idea/download/index.html
Note that there are 2 versions provided, one is for Intel CPU, another one is for Apple Silicone (M1/2 chip). From the logs it looks like you've got the wrong one.
I download from that webpage, and version is for intel.
I also reinstalled one more time, but i got the same problem. :(
P Dmitrijevaite You need this one:
thanks!
I'm also having the same problem - IDEA won't start. I'm using Community version and MacOS Apple Silicon.
Here are my logs:
I tried using Java 11, although I had 19 installed. This is the contents of my idea.vmoptions file:
What am I supposed to do? I tried reinstalling idea and it still won't open.
Katja Karpac See https://intellij-support.jetbrains.com/hc/en-us/articles/206544879. IntelliJ IDEA requires JDK 17 to run. Delete idea.jdk file from the Configuration directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory to remove the override.