Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Node.js, PHP and APIs · Step-by-step tutorial

IntelliJ IDEA no longer opens on Ubuntu after Choose Boot Java Runtime

Short answer

Choose Boot Java Runtime wrote the JDK you picked into a .jdk file in the IDE's config folder, and that JDK cannot run this IDE version. Delete the file (idea.jdk on Linux) to fall back to the bundled JetBrains Runtime. If the IDE still fails, an IDEA_JDK variable is forcing a runtime, because the launcher checks it first.

  • Applies to IntelliJ IDEA 2025.3 to 2026.3, Ubuntu 24.04 and 26.04, tar.gz installation
  • Updated
  • By Maaz Zindani, Senior Software Engineer

The IDE is not broken. Since the restart it has been launching on the JDK you selected, and that JDK is too old, too new, or simply not built to run this IntelliJ release. JetBrains warns that a runtime you choose yourself does not update with the IDE and may not suit the next version, which is why the failure can also appear a week later, right after an upgrade.

Getting back takes one file deletion and, sometimes, one environment variable. This tutorial does both from a terminal, since the dialog that made the change is out of reach while the IDE will not open, then shows how to see which runtime the launcher actually picked.

Before you start

  • A terminal on the same Linux account that runs the IDE.
  • The IDE's configuration folder name, such as IntelliJIdea2026.3 (one per installed version).
  • The folder where you unpacked the tar.gz; /opt/idea stands for it below.
  • Nothing from the JDK you picked: it can stay installed.

Step 1

How the launcher picks a runtime

JetBrains' install guide starts the tar.gz build with bin/idea.sh. That script, like the native bin/idea launcher in the same source tree, checks a fixed list of places for Java and uses the first one with a runnable bin/java. Knowing the order explains every case on this page: a higher entry silently beats everything below it.

OrderWhere it looksSet by
1`IDEA_JDK` environment variableYou, in a shell profile or a desktop file
2`idea.jdk` in `~/.config/JetBrains/<version>/`Choose Boot Java Runtime
3`jbr` folder inside the IDEThe download itself (the default)
4`JDK_HOME`, `JAVA_HOME`, or any `java` found on the PATHYour system or SDK manager

The file name is not idea64.jdk on Linux. The native launcher's source takes the base name of idea64.vmoptions, drops the 64, and adds .jdk; only Windows uses idea64.exe.jdk. List the folder rather than guessing.

Step 2

Steps to get back to the bundled JetBrains Runtime

  1. Close any half-started IDE process: pkill -f /opt/idea (adjust to your folder).
  2. See which override files exist: ls ~/.config/JetBrains/IntelliJIdea2026.3/*.jdk. The launcher reads XDG_CONFIG_HOME instead of ~/.config when that variable is set.
  3. Print the path inside to note which JDK caused this, then delete the file. JetBrains documents deleting it as the way to return to the default runtime.
  4. Check the variable that outranks the file: echo "IDEA_JDK=$IDEA_JDK". If it prints a path, remove the line that exports it and open a new terminal.
  5. Start the IDE from that terminal with shell tracing on, so the lookup is printed instead of guessed.

Remove both overrides, then start with the lookup visible

cat ~/.config/JetBrains/IntelliJIdea2026.3/idea.jdk
rm ~/.config/JetBrains/IntelliJIdea2026.3/idea.jdk
grep -n 'IDEA_JDK' ~/.profile ~/.bashrc ~/.zshrc /etc/environment 2>/dev/null
unset IDEA_JDK
sh -x /opt/idea/bin/idea.sh 2>&1 | grep -m1 'JRE='

Step 3

It worked when the trace names the jbr folder

sh -x prints every line the launcher script runs, and the first JRE= assignment is the runtime it chose. After the fix it should read JRE=/opt/idea/jbr. If it still names your JDK, an override survived. If you start the native bin/idea instead, setting IJ_LAUNCHER_DEBUG=1, the switch its source reads, prints the same numbered lookup.

After the window opens, confirm from outside the IDE that the running Java binary is the bundled one, and that no fresh crash file appeared in your home folder.

Three checks after the IDE opens

ps -eo args | grep '[j]br/bin/java' | cut -c1-80
ls -lt ~/java_error_in_idea_*.log 2>/dev/null | head -3
tail -n 20 ~/.cache/JetBrains/IntelliJIdea2026.3/log/idea.log

Step 4

When step 2 changes nothing

If the trace still shows IDEA_JDK winning, the variable is coming from somewhere your new terminal did not read: a .desktop launcher with an Env line, a system-wide file, or a session started before you edited the profile. Log out and back in, then repeat the check.

If it skips the bundled runtime and lands on JAVA_HOME, the jbr folder is missing or damaged, often after copying the IDE folder by hand. The script also checks that jbr/release names the same CPU architecture as the machine, and skips the folder when it does not. Unpack a fresh archive that matches uname -m instead of pointing the IDE at a system JDK.

Step 5

Reading the crash file the JVM left behind

Both launchers pass -XX:ErrorFile so that a JVM which dies during start-up writes java_error_in_idea_<pid>.log to your home folder. The first lines name the Java version that crashed, which tells you whether the override was still active. An entry from before your fix is history; a new one after the fix means the problem is not the runtime choice.

It worked when

  • Choose Boot Java Runtime writes a path into idea.jdk on Linux; deleting that file restores the bundled runtime.
  • IDEA_JDK outranks the file, so clear it too.
  • sh -x bin/idea.sh shows which runtime the launcher chose.
  • Before an IDE upgrade, switch back to the default runtime first.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Next step

Want a second pair of eyes on it?

Send me the error and what changed before it started. I reply within 24 hours.