Reputation: 71
I need to check whether certain bundles loaded at startup inside my RCP Application. I know there is a "Host OSGi Console" that shows the states of all Plug-Ins within the Eclipse IDE, but I am not interested in those.
I performed the following steps to get the OSGi Console of my application itself:
Added the Plug-In "org.eclipse.equinox.console"
Created a OSGi Framework Configuration: Run Configuration -> OSGi Framework -> MyNewConfiguration
Run the configuration
When I validate the Plug-Ins, it says "Missing constraint: import package org.eclipse.felix.service.command". Where can I find this bundle?
Is this the correct way to open the OSGi Console of my custom RCP application? I'm not able to export the application as a product, so I can't run it outside of the Eclpse IDE.
Upvotes: 4
Views: 3251
Reputation: 1294
For anyone coming late to the party... In addition to org.eclipse.equinox.console you also need the org.eclipse.pde.ui plugin to be selected in your launch configuration. Use the 'Validate plugins' button as this generates some additional dependencies of its own (in Eclipse 2021-06) this list is:
You don't need to specify -console in the program arguments.
Upvotes: 0
Reputation: 131
Include bundles
in your run configuration.
Also add option -console
to your program arguments.
When developing it is sometimes useful to use option -debug
and -consoleLog
also.
Upvotes: 6