3

A jre or jdk must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:
c:\user\ashish\downloads\eclipse\jre\bin\javaw.exe in your current PATH.

Ash28
  • 85
  • 1
  • 1
  • 11

5 Answers5

3

See the FAQ:

If a JVM is installed in the eclipse/jre directory, Eclipse will use it; otherwise the launcher will consult the eclipse.ini file and the system path variable. Eclipse DOES NOT consult the JAVA_HOME environment variable.

To explicitly specify a JVM of your choice, you can use the -vm command line argument

Community
  • 1
  • 1
Alex
  • 8,093
  • 6
  • 49
  • 79
  • And how will that help with installing Eclipse? Do you have proof it uses the JAVA_HOME variable? It certainly has no effect on my environment. – Gimby Mar 10 '14 at 10:47
2

Unless explicitly told Eclipse just uses the default Java installation on the system, and does not go looking for other Java installations. For Windows it is the one which copies java.exe into the Windows system folder.

The simplest way to get that is to go to http://java.com/en/download/installed.jsp and install what is suggested until the website informs you you have Java.

(If Eclipse still does not want to start, be certain that you have the same 32bit/64bit version as was installed above)

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
0

You can do two things in order to get rid of this problem:

First: You can refer to your JDK installation in eclipse.ini configuration file, as descriped here.

Second: copy the JRE directory into you eclipse Home directory.

Community
  • 1
  • 1
Salah
  • 8,567
  • 3
  • 26
  • 43
0

The problems could be 1. JDK for 32 or 64 bit processors - I had a 64 bit processor but my eclipse was looking for 32 bit compatible java 2. I downloaded 32 - bit processor and then updated eclipse.ini file

Hence, it worked!!

kg3
  • 19
  • 4
0

Perhaps you might have downloaded the wrong file i.e maybe 32 bit for a 64 bit OS (download 64 bit .exe file), try checking that, saves a lot of time.

Arun Kumar
  • 23
  • 6