Sunday, December 19, 2010

Fixing Eclipse RCP Launch Error: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.

If you encounter the following error message when launching your Eclipse RCP application/plugin :

!ENTRY org.eclipse.osgi 4 0 2010-12-20 00:49:08.433
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, com.abispulsa.bisnis.rcp.application, org.eclipse.equinox.app.error.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

It means that you haven't added the following plugin to your target platform / enabled plugins:

org.eclipse.ui.ide.application

That means you'll use the default "workbench" application as used by Eclipse IDE.

When you've created your own application class which implements org.eclipse.equinox.app.IApplication interface, you need to register an Eclipse extension to org.eclipse.core.runtime.applications in your plugin.xml like the following example:

   <extension id="application"
         point="org.eclipse.core.runtime.applications">
      <application>
         <run class="com.abispulsa.bisnis.rcp.Application">
         </run>
      </application>
   </extension>

Then edit your Eclipse Application launch configuration to use your own application class.

6 comments:

  1. We are consequently delighted this particular internet thing performs along with your article really solved the problem. Will take anyone on that home assistance you


    Runescape Gold
    Buy Runescape Gold
    RS GP

    ReplyDelete
  2. Very Useful article .
    Thanks a lot ! it helped me a lot.

    ReplyDelete
  3. It was the Night Elves’ inattention with guild wars 2 gold magic that caused the Burning Legion from their world to attack the land of Azeroth. The Night Elves succeed in resisting the armies of the Burning Legion, but their race still suffers great losses.www.gw2farm.com

    ReplyDelete
  4. it is not the same adapting a buy rs gold game for two tablet models for countless Android tablets out there. However, do not rule, saying they want to hear opinions from all players to maximize the potential of the game. arm2teeth.com/FIFA-13.Gold

    ReplyDelete
  5. DC Universe Online OnlineSony rsgold 2007 phase has begun registration to participate in the Legends PvP Tournament of the popular DC Universe Online for PC and PlayStation 3, in which heroes and villains from across Europe 07 runescape gold played a place to attend the event SOE Live from Las Vegas , where he held the great final.Para participate in this tournament, players have until June 24 to increase its ranking of Legends PvP in DC Universe Online, considering that the tournament is designed for old school runescape money teams of two.

    ReplyDelete
  6. Thank u very much, It helped me...........

    ReplyDelete