No java virtual machine was found in Eclipse

42,161

Solution 1

You can specify JVM in eclipse.ini file at the Eclipse root folder, like this:

-vm
C:\java\jdk1.6.0_24\bin\javaw.exe

This line must be placed before -vmargs options.

and for Linux

-vm
/..java address../bin/java

Solution 2

Try following:

  • Look at your filesystem and make sure a java instance is installed in the mentioned path
  • Open Eclipse and check the general preferences from Eclipse. Under 'Java' -> 'Installed JREs' must be a specified JDK configured.
  • Next, open the general preferences 'Java' -> 'Build Path' -> 'classpath Variables' and look is there the jdk instance mentioned. If not, open dthe control settings from windows and add the variable 'Java_Home'.
Share:
42,161
pkol
Author by

pkol

Updated on October 07, 2020

Comments

  • pkol
    pkol over 3 years

    Possible Duplicate:
    Eclipse - no Java (JRE) / (JDK) … no virtual machine

    I am trying to get Eclipse Indigo to re-Start on my computer - i have run it before with no problems but now i getting error like this;

    A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\eclipse\jre\javaw.exe javaw.exe in your current PATH

    How can i rectify this problem?

  • pkol
    pkol over 12 years
    How can i Specify this in root folder?At Which place -vmargs options is present?
  • YoK
    YoK over 12 years
    @niva root folder is the folder where you installed Eclipse package, in your case this can be C:\eclipse, you can find eclipse.ini file inside this folder.
  • pkol
    pkol over 12 years
    i cannot open the eclipse IDE sir
  • Reporter
    Reporter over 12 years
    have you checked the filesystem? Have you checked the enviroment variable 'JAVA_HOME'? What will happen if you open a dos prompt and executes 'Java -version' ?
  • pkol
    pkol over 12 years
    ya i tried Same Error is Occurred Again sir
  • pkol
    pkol over 12 years
    C:\Users\elakkiya>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
  • Reporter
    Reporter over 12 years
    Does it also work if you executes 'java -version' not in the install path else in a root folder like 'C:\'?