简体   繁体   中英

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)\\Java\\jdk1.6.0_23\\jre\\bin\\java.exe --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx384m

错误13通常是32/64位错误补丁的死亡赠品,这在使用安装在“C:\\ Program Files(x86)”下的JRE(专门用于64位Windows上的32位应用程序)时很明显,一个64位的Eclipse(对hame中包含arch x86_64的bundle的引用)。

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:\\Java\\JDK\\1.5\\bin\\javaw.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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM