Setting up Eclipse and Java JDK

I've been attempting to install and set up the Java JDK 1.6 and Eclipse (helios) on Windows 7.

I have downloaded the 32 bit of each, as the 64 bit Eclipse version didn't want to work.

So, having done that and amended the eclipse.ini file to pick up the right java.exe, I'm getting exit code 13 when running Eclipse. Have I made an error in the eclipse.ini some place?

Thanks!

-startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1.R36x_v20100810 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm C:Program Files (x86)Javajdk1.6.0_23jrebinjava.exe --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx384m


It seems that you should be pointing to javaw.exe http://wiki.eclipse.org/Eclipse.ini

-showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm C:JavaJDK1.5binjavaw.exe -vmargs -Xms40m -Xmx512m


--launcher.defaultAction openFile

appears two times. Maybe try to remove this after the -vm argument

It also seems that you are still referencing a 64bit version:

--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1.R36x_v20100810

This is my similar solution using the JDK instead of the JRE.

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
384M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
384m
--launcher.defaultAction
openFile
-vm
c:/Program Files (x86)/Java/jdk1.6.0_21/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx1024m


对于32/64位mismaatch,错误13通常是一个失败的情况,这在使用安装在“C: Program Files(x86)”下的JRE(专用于64位Windows上的32位应用程序)中很明显;一个64位的Eclipse(引用与arch x86_64捆绑在一起)。

链接地址: http://www.djcxy.com/p/29556.html

上一篇: Eclipse错误,当我调试项目

下一篇: 设置Eclipse和Java JDK