No Eclipse JRE or JDK

I try to use Eclipse on a computer for friends, but we keep getting this when we start Eclipse

enter image description here

We also have an environment variable.

enter image description here


Edit

he worked before he installed the black berry fork.

+4
source share
5 answers

The JAVA_HOME variable is not required by Eclipse, if your Java installation does not contain java executables in PATH , you must add them manually.

A faster way to enable and run Eclipse is to modify eclipse.ini and use the -vm option.

http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example

+12
source

I had the same problem. I need JDK for me. So I had to install the JDK. It should correspond to the build platform, which is 64 bits compared to 32-bit windows. After that, I deleted the -vm line from the eclipse.ini file (suggested fix). This gave me the error "I can’t create a virtual machine." The current version of the JDK is version 7, while the eclipse version for Android Developers Toolkit is currently based on the JDK 6. But it seems to work. Eclipse went up and running. Actually the program is not written yet.

+3
source

Go to the eclipse folder (where eclipse is installed) and open the eclipse.ini file in your editor and add the following code after the openFile tag.

-vm C: \ Program Files \ JDK6 \ bin \ javaw.exe

It's all.

+1
source

I had a similar problem, as our Java and JDKs are constantly updated by our support team, including removing old JDKs. They take care of PATH for us, but then the JRE that Eclipse was used to "see" disappeared. So, what works best for me is to change the label "target":

 "C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe" 

to

 "C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe" -vm "C:\Program Files\Java\<jdkver>\jre\bin\javaw.exe" 

This will point Eclipse to the JRE in the JDK that you want to use, and then you can update this shortcut when your JDK updates.

This is on 64-bit Windows, obviously.

+1
source

This can also happen if the JAVA and Eclipse versions do not match .

eg:

If java is 32 bits on your system and you are trying to install Eclipse from 64 bits, then the same situation may occur. Because Eclipse will look for Java in Program Files, while Java may be present in Program Files (x86).

So, in this case, eclipse will not receive java and will not give the same error.

0
source

All Articles