Problem
When starting the IDE, the following error appears:
Cannot start the runtime
Caused by:
0: Failed to load 'libjvm'
1: dlopen(/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/lib/libjli.dylib, 0x0001): tried: '/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/lib/libjli.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/lib/libjli.dylib' (no such file), '/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/lib/libjli.dylib' (no such file), '/opt/homebrew/Cellar/openjdk@11/11.0.22/libexec/openjdk.jdk/Contents/Home/lib/libjli.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/openjdk@11/11.0.22/libexec/openjdk.jdk/Contents/Home/lib/libjli.dylib' (no such file), '/opt/homebrew/Cellar/openjdk@11/11.0.22/libexec/openjdk.jdk/Contents/Home/lib/libjli.dylib' (no such file)
Please try to reinstall the IDE.
For support, please refer to https://jb.gg/ide/critical-startup-errors
Cause
The IDE is attempting to run on an unsupported Java version like 8 or 11. IntelliJ IDEA requires at least Java 17 to run. See supported Java versions for details.
Resolution
- Do not override the default bundled JetBrains Runtime.
-
Remove custom JDK settings:
- Delete the
idea.jdkfile from the configuration directory. - Remove any system environment variables that override the default runtime.
- Delete the
- Restart the IDE. It should now use the bundled JDK 17.
Comments
0 comments
Please sign in to leave a comment.