Start RCP Plugin without product [message #540460] |
Wed, 16 June 2010 04:49  |
Eclipse User |
|
|
|
Hi
I would like to be able to start an RCP plugin as an application outside of the eclipse IDE, without creating a product. The reason I want to do this is that I would like to be able to control which plugins should be part of the RCP application by changing a configuration file.
To reproduce what I am trying to do, Create a new plugin project in eclipse
-Choosing "Create a new RCP Application"
-Choose "RCP Mail Template"
Now I can run this plugin from within the eclipse IDE by pressing the "Launch an Eclipse application" on the plugin.xml overview tab. I would like to be able to reproduce this beahviour from outside the IDE.
I tried doing something like this:
java -jar org.eclipse.osgi-3.5.1.R35x_v20090827.jar -clean -console -configuration conf -application my.example.Application
where conf is the directory where I put my config.ini (I used the config.ini generated by the run configuration when I pressed the "Launch Eclipse Application" above), and the -application parameter is my Application class name.
When running the above command all of the bundles install correctly, but the GUI never launches. What do I need to do to be able to correctly launch the GUI? Is this even possible, is eclipse doing some magic behind the scenes to make this work?
|
|
|
|
Re: Start RCP Plugin without product [message #540662 is a reply to message #540507] |
Wed, 16 June 2010 17:43  |
Eclipse User |
|
|
|
Thanks Paul, that worked perfectly.
Turns out that using org.eclipse.osgi-3.5.1.R35x_v20090827.jar also works, its just that I had an error in my application argument, and so the osgi console would launch but not the
GUI. I made the mistake of using the class name for the argument, when it should actually be the application node from plugin.xml:
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application=" my.example.application"
...
|
|
|
Powered by
FUDForum. Page generated in 0.06051 seconds