If there are problems with the selected runtime, you can delete this file to revert to the default runtime. The path to the selected runtime is stored in the idea.jdk or idea64.jdk file in the IntelliJ IDEA configuration directory. To reset back to the default runtime that the IDE initially used, click Use Default Runtime. Alternatively, click Add JDK to specify the location of the desired Java home directory. IntelliJ IDEA lists all the JDKs and JREs that it was able to detect. To use a different Java runtime available on your computer, select Add Custom Runtime… under Advanced. When you open the Choose Boot Runtime for the IDE dialog for the first time, it may take a while to load the list of JetBrains Runtime builds from the server. Wait for IntelliJ IDEA to restart with the new runtime. If necessary, you can change the location where IntelliJ IDEA will download the selected runtime.
Switch the Java runtime used to run IntelliJ IDEAįrom the main menu, select Help | Find Action or press Ctrl+Shift+A.įind and select the Choose Boot Java Runtime for the IDE action. Reset back to the default runtime when updating IntelliJ IDEA to get the latest compatible version of JetBrains Runtime. When using a non-default Java runtime for IntelliJ IDEA, it will not update with the IDE and may not be compatible with the new version.
If you install only Oracle Java JRE 10, then it will not appear in this list. Reordering the list, by dragging Java SE 10 to the top, makes it the default version of Java. The Version column specifies the version of Java that is installed. Do not change it unless you were specifically asked to do so by JetBrains support. The Vendor column indicates whether the Java release is supplied by Apple or Oracle. However, in some cases you may be required to use another Java runtime or a specific version of JetBrains Runtime.Ĭhanging the runtime may cause unexpected problems. It is recommended to run IntelliJ IDEA using JetBrains Runtime, which fixes various known OpenJDK and Oracle JDK bugs, and provides better performance and stability. (select the 'Tools' menu 'Libraries') or 'Java Platform Manager' (select 'Tools' menu 'Java Platforms') Adding External JAR files & Native Libraries ('.dll. Output after executing above command may be similar with following text, which means there was two versions of JDK installed, and 1.7.079. To use NetBeans for Java programming, you need to first install JDK. The javahome -v command will list all JDKs already installed in your Mac OS.
1 How to see JDK versions already installed.
As a Java application, IntelliJ IDEA includes JetBrains Runtime (based on OpenJDK 11), which is used by default. Tips on how to uninstall JDK or Java SE in Mac OS X.