2
votes

Got the below Error messages when i try to open the Eclipse. "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 follwing locations: C:\ECLIPSE\HELIOS\jre\bin\javaw.exe javaw.exe in your current PATH"

i have modified the eclipse.ini (C:\ECLIPSE\HELIOS) by adding the below lines,

-vm 
C:\Program Files (x86)\Java\jre7\bin\javaw.exe

After that change, i'm able to access the Eclipse. but most of my colleague and web suggested the below different options.

-vm
C:\Program Files (x86)\Java\jdk1.5.0_22\jre\bin\javaw.exe

and

-vm
C:\Program Files (x86)\Java\jdk1.5.0_22\bin\javaw.exe

Please help me with this. which one is correct option for this error.?

1
You want the Java 7 JRE. jdk1.5.0 is very old and is obsolete.Jim Garrison
Yes. want JRE 7 and JDK 1.5.0 versions. Project team don't wanted to upgrade the JDK version due to some restrictions.chimbu
did u try setting it up through server configuration like windows->preference->tomcat 7->intalled jreSparkOn
i haven't tried that yet. please give me detailed steps to do that and why is it required.chimbu

1 Answers

0
votes

In your eclipse.ini file make sure you are pointing -vm to your jdk installation.You have already did but refer below for more detail Here