i can't launch eclipse i get errorcode =6

i have reinstalled eclipse, java and the JDK to the newest 64bit version i have a variable environment named PATH with a varible of

C:Program Files (x86)Javajdk1.8.0_05bin;C:Program Files (x86)Javajdk1.8.0_05binjavaw.exe;C:Program FilesJavajre7bin;C:Program Files (x86)Javajre8bin;C:Program Files (x86)Javajre8binclientjvm.dll

After double left-clicking eclipse.exe http://i.stack.imgur.com/gVtTt.jpg

After pressing ok http://i.stack.imgur.com/rvpaY.jpg

and my eclipse.ini (IGNORE the bog spaces between lines)

-startup

plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212

-product

org.eclipse.epp.package.dsl.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vm

C:Program Files (x86)Javajdk1.8.0_05jrebinjavaw.exe

--launcher.appendVmargs

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms40m

-Xmx512m

that should be it :D


i think your problem is with java versions, uninstall all java versions from your computer and install 1.6 required one as it was mentions in the settings you posted, it should fix.

Regadrs..


You seem to have multiple java path included in your PATH variable.

Firstly clean that up.

Make sure you have one single JDK installed and the same should be referred by your JAVA_HOME variable.(Create a JAVA_HOME variable and include it in path like ;%JAVA_HOME%bin;)

Then you unzinp eclipse and just double click eclipse to run it.

I could not understand the use of jvm.dll???

We just install jdk and set it in env var and double click eclipse. that's it.

example - if you installed jdk1.7 then you keep your JAVA_HOME = C:Program FilesJavajdk1.7.0_51

AND PATH = %JAVA_HOME%bin;

Hope it helps.


eclipse.ini文件的顶部使用jvm dll而不是javaw.exe删除-startup并添加-vm ,如下所示:

-vm
C:/Program Files (x86)/Java/jdk1.8.0_05/jre/bin/server/jvm.dll
链接地址: http://www.djcxy.com/p/29564.html

上一篇: 无法创建JVM

下一篇: 我无法启动Eclipse,我得到errorcode = 6