I am trying to get Eclipse v3.5 (Galileo) to re-run on my computer - I have run it before with no problems, but now I keep getting this error:
make a batch file in the eclipse folder and write in it :
eclipse -vm C:\Sun\SDK\jdk\jre\bin\javaw.exe
see http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F
When I had such problem, in my case I had x64 JDK + JRE installed with x86 Eclipse. So installing of x86 JDK + JRE solved my problem :) Also I created jre
folder in eclipse folder and copied bin
folder from my local path C:\Program Files (x86)\Java\jre7
to ..\eclipse\jre\
.
Just Add the JRE PATH FOR Ex: C:\Program Files\Java\jre5\bin in the environmental variable Put ";" in between every path. Then click the eclipse.exe It will work.....
The JDK does not install a JVM in the default path.
Unless you need external tools to run like ant, the non-JDK is enough for Eclipse to run. The easiest way to install such a JVM is to go to http://java.com and let it install whatever it want to install.
Then double-click the Eclipse binary again.
There is an easier way to do that. Just run cmd x64. Type cmd x64 to search bar in start menu ant you will find it :) Or alternatively, you should set path to program files (x86) ... For example C:\Program Files (x86)\Java\jre6
I had the same issue (Windows 7 x64, 64bit JDK, 32bit Eclipse), and I found 2 solutions: