Your Eclipse IDE is configured to stick with a JDK/JRE in its configuration file.An installation of Oracle Java putting its path before your JAVA_HOME, or.You changed JAVA_HOME points to a newer JDK/JRE, but Eclipse still runs under the old one. So changing the Java version that run Eclipse is just a matter of updating the value of the JAVA_HOME variable.However, sometimes it doesn’t work like that. Consider a typical value of the PATHenvironment variable like this: path1 path2 path3 … %JAVA_HOME%\bin In this case, the Java Virtual Machine found in the JAVA_HOME path will run Eclipse IDE. By default, the first instance of JDK/JRE found in the PATHenvironment variable is used to run Eclipse. How to Change JDK / JRE for EclipseYou know, Eclipse IDE is written in Java so it needs a JDK/JRE installed to run. In the above screenshot, you see Eclipse is running on OpenJDK 11.0.2.Ģ. Wait for a moment while Eclipse is retrieving configuration information, and you will see a screen as below: Find the line that starts with –vm and the value in the next line shows the exact path of JDK/JRE on which Eclipse is running. Then in the next screen, click Configuration tab. Then in the About Eclipse IDE dialog, click the Installation Details button. Find the JDK / JRE that runs EclipseIn Eclipse, click menu Help > About Eclipse IDE. First, you need to know exactly which version of Java on which Eclipse is running.
HOW TO FIND THE JDK PATH IN MAC HOW TO
In this article, I will guide you how to change JDK/JRE that runs Eclipse IDE, on Windows operating system.