0

Eclipse Failed to Launch on Mac OSX: “No application id has been found”

I tried to startup my existing Eclipse and it doesn’t work with the error message: “An error has occurred. See the log file /Applications/eclipse/configuration/1344483936178.log”.

So, I tried to remove the existing Eclipse installation folder and re-install a new Eclipse but the problem still occurs. I did some google work and found this site that provides the workaround which worth to give it a try:
Eclipse on macosx: org.osgi.service.application.ApplicationException: No application id has been found

The directed log file contains the following stacktrace:


!ENTRY org.eclipse.equinox.p2.core 4 0 2012-08-09 13:44:21.828

!MESSAGE Provisioning exception

!STACK 1

org.eclipse.equinox.p2.core.ProvisionException: Unknown repository type at file:
/Applications/eclipse/configuration/org.eclipse.osgi/bundles/305/data/listener_1925729951/.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.
fail(AbstractRepositoryManager.java:393)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.
doCreateRepository(AbstractRepositoryManager.java:282)
...
...
(more)

!ENTRY org.eclipse.osgi 4 0 2012-08-09 13:44:22.863

!MESSAGE Application error

!STACK 1

org.osgi.service.application.ApplicationException: No application id has been found.

at org.eclipse.equinox.internal.app.EclipseAppContainer.
startDefaultApp(EclipseAppContainer.java:262)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.
run(MainApplicationLauncher.java:29)

...
...
(more)

Here are the steps that I have done to resolve the problem:

  1. Remove the following files (My id is 1 instead of 9):
    • /Application/eclipse/configuration/org.eclipse.core.runtime/.extraData.1
    • /Application/eclipse/configuration/org.eclipse.core.runtime/.mainData.1
  2. Find the location of xercesImp.jar via the terminal:
    mychin$ locate xercesImpl.jar
    /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/xercesImpl.jar/Users/mychin/Documents/libraries/xerces-2_11_0/xercesImpl.jar
    
  3. Move the xercesImpl.jar to the /tmp folder:
    mychin$ mv /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/xercesImpl.jar /tmp
    

Relaunch the Eclipse and now it works well.

Article Global Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Eli Pets

chin yee

Leave a Reply

Your email address will not be published. Required fields are marked *

Current day month ye@r *

What is 11 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)