开发者

Setting up Eclipse and Java JDK

开发者 https://www.devze.com 2023-02-05 22:28 出处:网络
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.

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 o开发者_开发知识库penFile -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:\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


Error 13 is usually a dead giveaway for a 32/64-bit mismaatch, which is evident in using a JRE installed under "C:\Program Files (x86)" (exclusively for 32-bit applications on a 64-bit Windows) and a 64-bit Eclipse (the reference to bundles with the arch x86_64 in their hame).

0

精彩评论

暂无评论...
验证码 换一张
取 消