2010-08-27 114 views
2

我在嘗試下載適用於Android開發的Eclipse IDE。我已經下載了安裝程序,但每當我嘗試打開dmg時,它都會顯示一條錯誤消息:無法在我的Mac上安裝Eclipse IDE

「無法打開應用程序Eclipse,因爲它在此類型的Mac上不受支持。

我的Mac的處理器是1.83 GHz Intel Core Duo,我的Mac OS X版本是10.6.4。

我下載 「Eclipse IDE的Java開發人員」 4米http://www.eclipse.org/downloads/

任何人有這個問題的想法?

+0

剛剛完成我的答案與新元素,感謝[zvikico](http://stackoverflow.com/users/2823/zvikico)。 – VonC 2010-08-27 17:49:58

回答

0

嘗試在我的32位Mac上設置「Eclipse IDE for Java Developers」後,連續數天無法修復它。我終於安裝了「Eclipse Classic 3.6.0」的32位版本,是的它的工作。

再次感謝VonC爲您的所有時間和支持! =)

+0

是的!很高興聽到你設法使它工作。不用謝 ;) – VonC 2010-09-01 06:16:57

4

您是否安裝了64位版本的Eclipse,如this thread
如果是這樣,請嘗試使用32位。

snowleopard.wikidot提到的Eclipse 3.5是兼容的,雖然:

May require installing Java 1.5 since SL actually only ships with Java 1.6


關於你的配置,zvikico增加在評論:

AFAIK, the Core Duo is a 32 bit processor, not capable of running 64 bit at all.
Even if you install Snow Leopard.

First, you need the 32 bit version. Second, make sure 32 bit Java is your default. You can set it using an application called JavaPreferences, sitting in the /Applications/Utilities.

所以:

  • 檢查喲烏爾Java和
  • 下載Macosx Cocoa 32bitseclipse-java-helios-macosx-cocoa.tar.gz

下面是一些安裝教程(一般爲64位版本,但也可以是有益的32位版本)

Installing Eclipse Galileo on Mac OS X(可應用於太陽神)

Snow Leopard (10.6.x) Users

Download the Mac Cocoa 64-Bit version.

Again, the Carbon version is there in case you encounter compatibility issues with older plugins.

(正ot再與Helios:沒有碳版本,只可可)

The main reason you would want to use the 32-Bit version is because of plugins which are incompatible with 64-Bit.
This time, the 32-Bit version will waste your resources because you will cause the OS to start a whole bunch of 32-Bit services.

閱讀原始文章的更多細節。

Java 1.6 & Eclipse on Mac OS X參見:

Initially, the latest version of Eclipse (3.5) was released only in 32-bit mode for bot:

  • Carbon (an older and deprecated Mac OS API) and
  • Cocoa (the modern Mac OS API).

Since Leopard only supported Java 1.6 in 64-bit mode, this meant that Eclipse was always running under Java 1.5. With the release of Eclipse 3.5.1, there are now 64-bit Cocoa downloads available, and these will run under Java 1.6.

Everyone apparently agrees that on Snow Leopard you want the 64-bit Cocoa version of Eclipse (unless you are on a 32-bit Intel Mac).

+0

是的。它是一個64位版本。 – nomann 2010-08-27 06:59:37

+0

@ Gr8:然後嘗試32位版本,看看問題是否仍然存在 – VonC 2010-08-27 07:00:46

+0

好的。我也下載了32位版本。 Plz讓我試試。 – nomann 2010-08-27 07:07:51

0

儘管64位是必需的,反之亦然你可能下載了一個32位版本。

+0

我的隊友已經下載Eclipse使用相同的dmg,他具有相同的操作系統。 – nomann 2010-08-27 07:03:37

0

非常感謝您的時間VonC和zvikico。你們真棒。

我已經下載了MacOSx Cocoa 32位(eclipse-java-helios-macosx-cocoa.tar.gz),在eclipse.ini文件中爲我的Java指定了路徑,並使用「Java首選項」設置了32位Java。

但問題仍未解決。

我發送低於我的eclipse.ini文件的內容(我的java版本是1.6。0_20):

-startup 
../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar 
--launcher.library 
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.0.v20100503 
-product 
org.eclipse.epp.package.java.product 
--launcher.defaultAction 
openFile 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
256m 
-vm 
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java 
--launcher.defaultAction 
openFile 
-vmargs 
-Dosgi.requiredJavaVersion=1.6.0_20 
-XstartOnFirstThread 
-Dorg.eclipse.swt.internal.carbon.smallFonts 
-XX:MaxPermSize=256m 
-Xms40m 
-Xmx384m 
-Xdock:icon=../Resources/Eclipse.icns 
-XstartOnFirstThread 
-Dorg.eclipse.swt.internal.carbon.smallFonts 
+0

2分:1/startup和launcher.library的路徑應該是直接的'plugins',而不是'../../ ../ plugins':你的'eclipse.ini'文件應該直接在裏面eclipse安裝目錄,正確的插件和功能子目錄。 2 /'-Dosgi.requiredJavaVersion = 1.6.0_20'對我來說似乎很奇怪:''-Dosgi.requiredJavaVersion = 1.6'更好,就像我在'eclipse.ini'中指定的那樣(http://stackoverflow.com/questions/) 142357 /什麼是最好的jvm設置日食) – VonC 2010-08-30 06:09:58

+0

更改版本,但... 刪除「../../../」日食給出錯誤「日食可執行文件啓動器無法找到它的伴侶發射罐。「 – nomann 2010-08-30 06:55:45

+0

好吧,你看到'eclipse.ini'上的'plugins'和'features'目錄嗎?你把'eclipse.ini'放到了eclipse安裝的eclipse'目錄下嗎?實際上(甚至更簡單),嘗試完全消除這些設置:刪除4行('-startup'和'--launcher.library'),看看是否可行。但是再次,'eclipse.ini'文件必須正確放置。 – VonC 2010-08-30 07:04:22