Reputation: 1460
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?
Upvotes: 39
Views: 40668
Reputation: 318
In Eclipse, check if all your projects / subprojects are open, and if all your children pom.xml of your subprojects are correctly imported as existing Maven projects (left clic on each child project > import > Existing Maven Projects > select all).
Upvotes: 0
Reputation: 589
After some try and error, I found that I had some problems with the "Run Configurations".
It is managable through this steps:
Upvotes: 0
Reputation: 1
Somthing that worked for me is using eclipse Photon ...so check the version that supports.
Upvotes: 0
Reputation: 157
The reason why Neils solution is forgotten by Eclipse is, that Eclipse overrides the Run Configuration when ever you launch your product from the *.product file. Therefore the solution is to adapt the dependencies in the *.product file instead of the Run Configuration. Moreover I would recommend to always launch Eclipse RCP projects from the *.product file, to avoid problems with changed configurations.
Upvotes: 0
Reputation: 26342
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.
Upvotes: 17
Reputation: 331
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:
org.eclipse.core.net
org.eclipse.ui.ide.application
Upvotes: 2
Reputation: 4495
For those who cannot run even after adding all required plugins, I got this error also when the JRE System Library configured in Run Configurations was not satisfying the minimum execution environment of the plugin (--> plugin.xml || Bundle-RequiredExecutionEnvironment in manifest).
Upvotes: 0
Reputation: 538
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:
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.
Upvotes: 2
Reputation: 1460
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 :-(
Upvotes: 57