Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify JRE for IntelliJ Idea on Windows

Tags:

How to define which JRE IntelliJ IDEA should use to run on Windows?

like image 818
Vic Avatar asked Aug 09 '12 09:08

Vic


People also ask

What version of Java do I need to run IntelliJ?

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.

How do I run IntelliJ IDEA?

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.

How to run IntelliJ IDE in 64-bit mode?

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).

How to change the JDK path in IntelliJ IDEA?

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.


1 Answers

In the following post it was specified that the paths look up sequence is the following:

  1. IDEA_JDK env. variable
  2. ./jre directory
  3. registry
  4. JDK_HOME environment variable

And indeed. Creating an IDEA_JDK environment variable did help.

like image 162
Vic Avatar answered Sep 18 '22 03:09

Vic