IntelliJ IDEA 2019.3 Help

Change boot Java runtime for IntelliJ IDEA

As a Java application, IntelliJ IDEA includes JetBrains Runtime (based on OpenJDK 11), which is used by default. 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. However, in some cases you may be required to use another Java runtime or a specific version of JetBrains Runtime.

Switch the Java runtime used to run IntelliJ IDEA

  1. Install the Choose Runtime plugin.

    In the Settings/Preferences dialog Ctrl+Alt+S, select Plugins and search for the Choose Runtime plugin in the Marketplace.

    The Choose Runtime plugin in Marketplace
  2. Open the Choose Runtime dialog.

    On the Help menu, click Find Action or press Ctrl+Shift+A and search for Choose Runtime.

    The Choose Runtime dialog with a remote JetBrains Runtime build selected

    When you open the Choose Runtime dialog for the first time, it may take a while to load the list of runtimes from the server. The list contains available local Java runtimes detected by IntelliJ IDEA and remote JetBrains Runtime builds on BinTray. The runtime currently used to bootstrap the IDE is written in bold.

  3. Select the desired runtime and click Install.

    IntelliJ IDEA restarts with the new runtime.

If it's a remote runtime, it is also downloaded to your computer. You can download a remote runtime without installing it using the arrow next to the Install button. If you want to remove previously downloaded runtimes, use the Clean Up button. The currently used boot runtime is not deleted in this case.

If you want to use a local Java runtime that was not detected automatically, click the Browse button The Browse button and specify the location of the desired Java home directory.

If you want to reset to the default runtime that the IDE initially used, click Use Default.

The path to the selected runtime is stored in the idea.jdk file in the IntelliJ IDEA configuration directory. If there are problems with the selected runtime, you can delete this file to revert to the default one.

You can also override the runtime used for IntelliJ IDEA by adding the IDEA_JDK environment variable with the path to the desired JDK home directory.

Last modified: 12 December 2019