从 Luna 更新到 Mars 后无法打开 Eclipse IDE

Can not open Eclipse IDE after update form Luna to Mars

我将 eclipse Luna 更新到 Mars。 我所做的是...

现在,当我尝试打开 eclipse 时,会显示一条弹出消息。它说 "Can not open this application" 而没有其他任何信息。

好像更新成功了,不知道是哪里出了问题。我该如何解决或获得有关这种情况的一些线索? 谢谢

仅供参考,我附上我的 eclipse.inijava -version 的结果。

这是 ini 文件

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-javaagent:/Applications/eclipse/plugins/com.zeroturnaround.eclipse.optimizer.plugin_1.0.6/agent/eclipse-optimizer-agent.jar
-Xverify:none
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms4096m
-Xmx4096m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

我的版本是...

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

来自What's New in Mars

For Mars (4.5), the Eclipse SDK for OS X is now distributed in a more standard "Mac App" format, instead of the "directory format" we have used in the past.

CAUTION: Current Mac users can not use "update" to Mars. In fact, doing so will break your installation! You need to start with a fresh download.

In the event that you updated before reading this, and have ended up with a broken installation, see Issues related to Mac App installations for the steps to recover your installation, after getting a fresh download.

因此您需要重新安装(您的工作区应该没问题)。