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.
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/ideastands 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.
| Order | Where it looks | Set by |
|---|---|---|
| 1 | `IDEA_JDK` environment variable | You, in a shell profile or a desktop file |
| 2 | `idea.jdk` in `~/.config/JetBrains/<version>/` | Choose Boot Java Runtime |
| 3 | `jbr` folder inside the IDE | The download itself (the default) |
| 4 | `JDK_HOME`, `JAVA_HOME`, or any `java` found on the PATH | Your 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
- Close any half-started IDE process:
pkill -f /opt/idea(adjust to your folder). - See which override files exist:
ls ~/.config/JetBrains/IntelliJIdea2026.3/*.jdk. The launcher readsXDG_CONFIG_HOMEinstead of~/.configwhen that variable is set. - 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.
- 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. - 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.logStep 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.jdkon Linux; deleting that file restores the bundled runtime. IDEA_JDKoutranks the file, so clear it too.sh -x bin/idea.shshows 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.