Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up Eclipse with JRE Path

I have downloaded and extracted Eclipse. I have Eclipse in the following directory: C:\Applications\eclipse. When I try and run the executable , I get the following message :

NO JRE in System PATH

I currently have the following folder:

C:\Program Files (x86)\Java\jre7 

Do I need to set up some environment variables for my Windows 7 OS to get Eclipse to run ? If so , may I please have some help to do this ? If not , can I please have some help to get Eclipse to run .

EDIT

I have changed the shortcut to include the path to the Virtual Machine , and am now getting this error :

http://www.canning.co.nz/Eclipse/Eclipse_Message2.png

like image 653
user2351151 Avatar asked May 06 '13 08:05

user2351151


People also ask

Can I run Eclipse with JRE?

A Java 8 or newer JRE/JDK is required to run all Eclipse 2019-03 packages based on Eclipse 4.11, as well as the Installer.

How do I get the JRE path?

Click the Advanced tab, and then click Environment Variables. Under System Variables, look for the JAVA_HOME system variable. The JAVA_HOME path should point to the location that you recorded when you installed the JRE.

Do we need to set path for JRE?

Set JAVA Executable PathIf we want to run java.exe or similar executables provided by JRE or JDK we have to add the path of Java in the Path variable like below. We select the system variable named Path and click to the Edit .


1 Answers

You can add this line to eclipse.ini :

-vm  D:/work/Java/jdk1.6.0_13/bin/javaw.exe  <-- change to your JDK actual path -vmargs <-- needs to be after -vm <path> 

But it's worth setting JAVA_HOME and JRE_HOME anyway because it may not work as if the path environment points to a different java version.

Because the next one to complain will be Maven, etc.

like image 132
Evgeniy Dorofeev Avatar answered Oct 15 '22 12:10

Evgeniy Dorofeev