2010-08-27 85 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