I tried to run \"eclipse-jee-juno-win32-x86_64\"
, but it raised the following error \" java runtime environment JRE or java development kit must be availab
This worked with me: Eclipse will not open due to environment variables
Let eclipse use your java vm directly!
Put these lines at the end of eclipse.ini (located in the directory where eclipse.exe is present):
-vm
<your path to jdk|jre>/bin/javaw.exe
Pay attention that there are two lines. Also make sure that the -vm option is before the -vmargs option (and of course after "openFile").
If you are using 32 bit eclipse IDE, then u might have to install the "jdk-7u45-windows-i586" version.
i have tried using 64 bit version JDK but no luck!
Thanks,
Puneeth
I put the JRE folder from the JDK installation directory to the Eclipse installation directory (the folder which contains the eclipse.exe file). It worked for me.
I faced this issue and it get resolved by following steps.
Delete non existing JRE path from this file as mention in below
-vm C:/Program Files/Java/jre1.8.0_181/bin
Save this file and run eclipse again.
I got the same error after a Java version update. I just edited the line after "-vm" in the eclipse.ini file, which was pointing to the older and no more existing jre path, and everything worked fine.
This problem is because of the fact that eclipse is not able to find Java ,
Check the java directory cd /Library/Java/JavaVirtualMachines///Contents/Home/jre/bin
If thats not present down JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Once JDK is installed change eclipse.ini file
On Mac: Right click on Eclipse icon and click "Show package Content"
Navigate to eclipse>Contents>Eclipse>eclipse.ini
Open the file and replace the java path after "-vm" with this
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin