4

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?

Community
  • 1
  • 1
pkol
  • 144
  • 2
  • 4
  • 9
  • That Answer is not useful sir – pkol Aug 16 '11 at 11:07
  • How can i rectify this problem – pkol Aug 16 '11 at 11:08
  • 2
    did you try the steps mentioned in that answer. How is that not helpful? Where did it fail? We will be able to help more if you give more details – Nivas Aug 16 '11 at 11:08
  • @Nivas - yeah that question looks to be a) exact dupe b) answered in full. So why not helpful I don't understand. – Richard H Aug 16 '11 at 11:13
  • I cannot open the Eclipse Ide,and also i chang the environmental variables Settings.please guide me clearly – pkol Aug 16 '11 at 11:20
  • guide me sir,i followed those instructions also But Am gettting Same error – pkol Aug 16 '11 at 11:38
  • @niva, did you try changing the values in eclipse.ini as mentioned in that answer? This does not need starting of the IDE – Nivas Aug 16 '11 at 14:47

2 Answers2

16

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
Ammar Bozorgvar
  • 1,230
  • 19
  • 30
YoK
  • 1,606
  • 17
  • 23
  • How can i Specify this in root folder?At Which place -vmargs options is present? – pkol Aug 16 '11 at 11:15
  • @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. – YoK Aug 16 '11 at 11:19
  • ya i tried Same Error is Occurred Again sir – pkol Aug 16 '11 at 11:28
1

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'.
Reporter
  • 3,897
  • 5
  • 33
  • 47
  • 2
    i cannot open the eclipse IDE sir – pkol Aug 16 '11 at 11:23
  • 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' ? – Reporter Aug 16 '11 at 11:27
  • 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) – pkol Aug 16 '11 at 11:31
  • Does it also work if you executes 'java -version' not in the install path else in a root folder like 'C:\'? – Reporter Aug 16 '11 at 11:38