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.

6
79 comments

Rajeshchilukuri Tech

https://youtrack.jetbrains.com/issue/IDEA-274515 is likely the case. Sorry for the inconvenience. Reinstalling should help.

0

Простите что по русски)

Неожиданное завершение intellij IDEA 2021.3.2. Версия MacOS 10.15.7.

Устанавливал и более раннюю версию - не помогло. CE работает прекрасно. Удалял CE, переустанавливал, результат не изменился.

Заранее благодарю за помощь

0

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.

0

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.

0

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.

0

Hi Serge, 

I installed JAVA JDK actual version and then I reinstalled EDI. It works now.

Thank you for support.

 

0

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

0

Thanks for the help! Serge Baranov, It worked. May i know why the issue came up in my previous installation

0

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

0

Huishanzhang2021 There are two vmoptions files, make sure none of them contains invalid options:

/Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
/Users/zhhshan/Library/Application Support/JetBrains/IntelliJIdea2021.3/idea.vmoptions

There may be also OS wide environment variables set that override the VM options:

JAVA_TOOL_OPTIONS
JDK_JAVA_OPTIONS
_JAVA_OPTIONS

Run `env` command in the Terminal to ensure you don't have any of these set.

0

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 ~ % 

 

0

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.

0

I download from that webpage, and version is for intel.

I also reinstalled one more time, but i got the same problem. :(

0
brew install --cask intellij-idea-ce
----or----
brew install --cask intellij-idea
0

I'm also having the same problem - IDEA won't start. I'm using Community version and MacOS Apple Silicon. 

Here are my logs: 

2023-01-09 10:48:27.504 idea[1856:24039] Current Directory: /Users/katjakarpac/thesocialcollective/Collective-social
2023-01-09 10:48:27.505 idea[1856:24039] parseVMOptions: IDEA_VM_OPTIONS = (null)
2023-01-09 10:48:27.505 idea[1856:24039] fullFileName is: /Applications/IntelliJ IDEA CE.app/Contents/bin/idea.vmoptions
2023-01-09 10:48:27.505 idea[1856:24039] fullFileName exists: /Applications/IntelliJ IDEA CE.app/Contents/bin/idea.vmoptions
2023-01-09 10:48:27.505 idea[1856:24039] parseVMOptions: /Applications/IntelliJ IDEA CE.app/Contents/bin/idea.vmoptions
2023-01-09 10:48:27.505 idea[1856:24039] parseVMOptions: /Applications/IntelliJ IDEA CE.app.vmoptions
2023-01-09 10:48:27.507 idea[1856:24039] parseVMOptions: /Users/katjakarpac/Library/Application Support/JetBrains/IdeaIC2022.3/idea.vmoptions
2023-01-09 10:48:27.507 idea[1856:24039] parseVMOptions: platform=20 user=1 file=/Users/katjakarpac/Library/Application Support/JetBrains/IdeaIC2022.3/idea.vmoptions
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend
Error occurred during initialization of VM
java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
    at java.lang.ClassLoader.defineClass1(java.base@11.0.16.1/Native Method)
    at java.lang.ClassLoader.defineClass(java.base@11.0.16.1/ClassLoader.java:1016)
    at java.security.SecureClassLoader.defineClass(java.base@11.0.16.1/SecureClassLoader.java:174)
    at jdk.internal.loader.BuiltinClassLoader.defineClass(java.base@11.0.16.1/BuiltinClassLoader.java:800)
    at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@11.0.16.1/BuiltinClassLoader.java:698)
    at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@11.0.16.1/BuiltinClassLoader.java:621)
    at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@11.0.16.1/BuiltinClassLoader.java:579)
    at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@11.0.16.1/ClassLoaders.java:178)
    at java.lang.ClassLoader.loadClass(java.base@11.0.16.1/ClassLoader.java:521)
    at java.lang.Class.forName0(java.base@11.0.16.1/Native Method)
    at java.lang.Class.forName(java.base@11.0.16.1/Class.java:398)
    at java.lang.ClassLoader.initSystemClassLoader(java.base@11.0.16.1/ClassLoader.java:1975)
    at java.lang.System.initPhase3(java.base@11.0.16.1/System.java:2070)

I tried using Java 11, although I had 19 installed. This is the contents of my idea.vmoptions file:

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+IgnoreUnrecognizedVMOptions
-XX:CompileCommand=exclude,com/intellij/openapi/vfs/impl/FilePartNodeRoot,trieDescend
-ea
-Dsun.io.useCanonCaches=false
-Dsun.java2d.metal=true
-Djbr.catch.SIGABRT=true
-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

What am I supposed to do? I tried reinstalling idea and it still won't open.

0

Please sign in to leave a comment.