簡體   English   中英

設置Eclipse和Java JDK

[英]Setting up Eclipse and Java JDK

我一直在嘗試在Windows 7上安裝和設置Java JDK 1.6和Eclipse(helios)。

我已經下載了每個32位,因為64位Eclipse版本不想工作。

所以,完成了這個並修改了eclipse.ini文件以獲取正確的java.exe,我在運行Eclipse時得到退出代碼13。 我在eclipse.ini的某個地方出錯了嗎?

謝謝!

-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的引用)。

看來你應該指向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

出現兩次。 也許嘗試在-vm參數后刪除它

您似乎還在引用64位版本:

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

這是我使用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