How to define which JRE IntelliJ IDEA should use to run on Windows?
Latest 64-bit version of Windows, macOS, or Linux (for example, Debian, Ubuntu, or RHEL) You do not need to install Java to run IntelliJ IDEA because JetBrains Runtime is bundled with the IDE (based on JRE 11). However, to develop Java applications, a standalone JDK is required.
To run IntelliJ IDEA, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin. When you run IntelliJ IDEA for the first time, some steps are required to complete the installation, customize your instance, and start working with the IDE.
To run the IDE in 64-bit mode you will need to download and install 64-bit JDK (not JRE) distribution and install it yourself. IDE will find and use it from the registry when you run the 64-bit .exe file (available only for IntelliJ IDEA right now, other products can use the .bat file to run in 64-bit mode).
I have found out that in recent versions of IntelliJ IDEA requires Java 1.8 but is not configured by default. We can change the path or configure from Project Settings > Project > Project SDK here we can edit or add the JDK´s path.
In the following post it was specified that the paths look up sequence is the following:
And indeed. Creating an IDEA_JDK environment variable did help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With