简体   繁体   English

设置Eclipse和Java JDK

[英]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. 我一直在尝试在Windows 7上安装和设置Java JDK 1.6和Eclipse(helios)。

I have downloaded the 32 bit of each, as the 64 bit Eclipse version didn't want to work. 我已经下载了每个32位,因为64位Eclipse版本不想工作。

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. 所以,完成了这个并修改了eclipse.ini文件以获取正确的java.exe,我在运行Eclipse时得到退出代码13。 Have I made an error in the eclipse.ini some place? 我在eclipse.ini的某个地方出错了吗?

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 -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 看来你应该指向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 -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 也许尝试在-vm参数后删除它

It also seems that you are still referencing a 64bit version: 您似乎还在引用64位版本:

--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. 这是我使用JDK而不是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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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