Error :- java runtime environment JRE or java development kit must be available in order to run eclipse
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 available in order to run eclipse. No java virtual machine was found after searching in the folloiwng location . «. Baring in mind that i have both java jre7 and Java jdk1.7.0_06 installed at C:\Program Files\Java. The other strange thing also that Eclipse used to run without any problems yesterday , but today i have downloaded the JDK 1.7.0_06 and i set the JAVA_HOME to be «C:\Program Files\Java\jdk1.7.0_06″so i don’t know if the problem is related to this . So what might be the problem in running Eclipse? BR
Worth noting: if your version of Eclipse is for 64bit systems and your JDK is built for 32bit systems, you’ll get the same error.
14 Answers 14
Check the eclipse.ini file and make sure there is no -vm option there that is pointing to a non existing java install now. You can delete the option to let Eclipse figure out what java install to use or change it so it’s pointing to the new install.
Thanks for the reply,, there was a «-vmargs» under «openFile» in the «eclipse.ini» file, so i remove it . but i am still getting the same error when i tried to open Eclipse..
No. Do not remove vmargs option. It’s needed. I said to look for the -vm option. Check this link on how to specify a vm directly for eclipse to use: wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM
I have added the following:- -vm C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe and it works well. BR
Might be easier to add java to your path instead. That way eclipse still works after you upgrade versions of java.
When the JRE is installed it is automatically in your path. The Oracle JRE installs bootstrap java.exe in your c:\windows\system32 folder that launches java.exe from where the JRE os installed.
Eclipse will not open due to environment variables [duplicate]
I just rebooted my computer without changing anything. Suddenly I can’t open Eclipse. Instead, I get this error message:
┌──────────────────────────────────────────────────────────────────────┐ │ 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 following locations: │ │ C:\Users\emiri\Downloads\eclipse\jre\bin\javaw.exe │ │ javaw.exe in your current PATH │ │ │ │ ┌────────────┐ │ │ │ OK │ │ │ └────────────┘ │ └──────────────────────────────────────────────────────────────────────┘
And I see all my environment variables have been erased. java , javac , mvn , etc. don’t work. What do I do now, and how do I fix this?
I woudl guess that whatever user you were logged in as before is not the user you are now. That’s why none of your environment is the same — but, it’s just a guess.
Here’s the error message: 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:\Users\emiri\Downloads\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH
13 Answers 13
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):
Pay attention that there are two lines. Also make sure that the -vm option is before the -vmargs option (and of course after «openFile»).
I haven’t been able to get this to work yet but I did find some more info on configuring the Eclispe.ini — wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#eclipse.ini
For me, I didn’t have Java installed on new machine. thanks. After installation, I added the contents into the .ini file as advised.
I think I found an easier way (for me anyway). Locate your javaw.exe file (either by searching for it or just where you installed it), then drag the javaw.exe file onto the eclipse.exe file and it will use it.
Here is the answer, sorry .. but your solutions weren’t correct
set PATH=C:\Program Files\Java\jre1.6.0_03\bin ;%PATH%
paxdiablo Did you rewrite the error or you got some kind of software reading text from image, if you got which one ?
But then you are stuck with a single VM. not a good solution if you need to support multiple versions
@Gandalf: No, it was painstakingly re-typed — I was bored and there weren’t many questions coming in that I could answer 🙂
First uninstall all java software like JRE 7 or JRE 6 or JDK ,then open the following path :
START > CONTROL PANEL > ADVANCED SETTING > ENVIRONMENT VARIABLE > SYSTEM VARIABLE > PATH
Then click on Edit button and paste the following text to Variable_Value and click OK.
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
Eclipse can’t find the JRE
I’m having a problem with the JRE on Ubuntu 14.04. EDIT: the computer has no connection to Internet, so I’m using the apt-offline method (I did that already with the installation of eclipse). Im trying to run eclipse cdt, when I play it, I get this message:
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: /usr/lib/eclipse/jre/bin/java java in your current PATH
The program 'java' can be found in the following packages: * default-jre * gcj-4.8-jre-headless * openjdk-7-jre-headless * gcj-4.6-jre-headless * openjdk-6-jre-headless Try: sudo apt-get install
sudo apt-get install openjdk-7-jre-headless
Reading package lists. Done Building dependency tree Reading state information. Done openjdk-7-jre-headless is already the newest version. openjdk-7-jre-headless set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
after java —version command, the output is again like the previous output. I tried to read this and that and some more articles EDIT 2: I also tried to add the path usr/lib/jvm/java-7-openjdk-amd64 to the etc/profile file:
JAVA_HOME=/usr/local/java/jre1.8.0_60 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JAVA_HOME export PATH
I don’t understand what I am missing or doing wrong. Or maybe the JRE is installed but Eclipse doesn’t know it somehow? I will be very happy for some guidance.