Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse RCP: No application id has been found

I'm attempting to create an Eclipse RCP application for the first time and so am following the Vogella tutorial here: http://www.vogella.com/articles/EclipseRCP/article.html

Per the steps I've created a new Eclipse 4 Application Project using all the default settings, yet when I click on "Launch an Eclipse application" I get an exception. In the error log it lists multiple bundles that could not be resolved and then at the end of the log there is a RuntimeException: No application id has been found.

I have not varied at all from the steps listed in the tutorial/defaults. Any ideas what's going on here?

like image 396
Neil Sainsbury Avatar asked Nov 27 '12 00:11

Neil Sainsbury


4 Answers

Shortly after posting, I found the specific magical incantation to fix this.

What you need to do is go to your Run Configurations (Run -> Run Configurations). Select the Plug-ins tab and then hit "Add Required Plug-ins". Apply, then Run, and it should work now.

Interestingly enough, it seems to forget this change with some regularity (bug here) and so you may need to do this often before launching :-(

like image 175
Neil Sainsbury Avatar answered Oct 08 '22 10:10

Neil Sainsbury


I added a list of common problems with starting your product to the tutorial mentioned. Find it here: Eclipse RCP checklist for common launch problems

Please note that modifying the launch configuration is the wrong solution, as your application will fail starting after the export.

like image 45
vogella Avatar answered Oct 08 '22 11:10

vogella


This may be the result of using a different version of eclipse (not sure). I hadf the same error. When I tried to alter the run config as described, I found no button, checkbox or anything else that stated "Add required plug-ins". What I did find, however, was a drop down list at the top of the plug-ins tab.

Launch with:

  1. all workspace and enabled target plug-ins
  2. plug-ins selected below only
  3. features selected below only

Mine was set to option 2. I switched to option 1 and clicked "Apply". The error went away, though the resulting RCP window didn't contain the expected list... but I suspect that's another problem altogether.

like image 23
Achim Schmitz Avatar answered Oct 08 '22 10:10

Achim Schmitz


I clicked the "Add Required Plug-ins" button but for some reason, it did not solve the "No application id has been found" problem.

What worked for me is the solution found here, which is:

  • Go 'Run > Run Configurations...'
  • Choose your run configuration
  • Click on 'Plug-ins' tab
  • Add plug-ins below:

org.eclipse.core.net

org.eclipse.ui.ide.application

like image 44
bookhuntress Avatar answered Oct 08 '22 12:10

bookhuntress