Search code examples
javaeclipseupdateseclipse-mars

Can not open Eclipse IDE after update form Luna to Mars


I updated eclipse Luna to Mars. What I did is ...

  • Add mars url to Window > Preferences > Install/Update > Available Software Sites
  • Help > Check for Updates
  • Followed what the wizard indicated
  • Installed successfully and a pop up showed that I have to reopen this application(Eclipse)

And now, when I trying to open eclipse, A pop up message shows. It said "Can not open this application" and no other any Informations.

It seems like update successfully, so I do not have any idea what is wrong is it. How can I fix or got some clues about this situation? Thanks

FYI, I attach my eclipse.ini and result of java -version.

This is ini file

-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

And my version is ...

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)

Solution

  • From the 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.

    So you need to do a new Install (your workspace should be OK).