Open the Eclipse folder and edit the Eclipse.ini file:please check if the file has THE-VM parameter, if not, then add it . -vmc:\program Files\java\jdk1.6.0_10\bin\javaw.exe note:it should be add before The-vmargs parameter. See my Eclipse.ini, just like the following:
-startupplugins /org.eclipse.equinox.launcher_1. 3.0 . V20120522-.jar–launcher.libraryplugins /org.eclipse.equinox.launcher.win32.win32.x86_1. 1.200 . V20120522-productorg.eclipse.epp.package.jee.product–launcher.defaultactionopenfile–launcher. xxmaxpermsize256m -showsplashorg.eclipse.platform–launcher. Xxmaxpermsize256m–launcher.defaultactionopenfile -vmc:\program Files (x86) \java\jdk1.6.0_17\bin\javaw.exe -vmargs - Dosgi.requiredjavaversion=1.5 -dhelp.lucene.tokenizer= standard -xms40m -xmx512m
Attention to the bold and red characters.
I hope it'll be helpful to you! Enjoy it!
Eclipse is an running in a JRE, and a JDK is required