Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to start RCP application from a running vm
How to start RCP application from a running vm [message #634180] Wed, 20 October 2010 17:20 Go to next message
Christian Reuter is currently offline Christian ReuterFriend
Messages: 34
Registered: October 2010
Member
Hi all,

I need to start my rcp application shell from a running vm as I want to communicate with Matlab which uses its own vm.

To be precise I want to start the Matlab-vm first.

Then while bypassing the rcp launcher, I need to do all the required steps to start up the rcp environment and directly open my applications' workbench window by executing java commands only.

Can anybody give me some advice how to do that?

Thx in advance!
Re: How to start RCP application from a running vm [message #634196 is a reply to message #634180] Wed, 20 October 2010 18:33 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Have a look at
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/eclipsestarter.html

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: How to start RCP application from a running vm [message #634383 is a reply to message #634196] Thu, 21 October 2010 13:52 Go to previous message
Christian Reuter is currently offline Christian ReuterFriend
Messages: 34
Registered: October 2010
Member
Hi Paul,

thx for your quick and useful reply.
I managed to invoke the "run"-method in the org.eclipse.core.runtime.adaptor.EclipseStarter class of my existing RCP-application from the running Matlab-VM.

However if I execute the convenience- "run"-method passing all parameters I get no return object, nothing seems to happen and the "isRunning" - method of EclipseStarter returns false afterwards. No error messages ....

If I execute the "startup"-method I get a BundleContext - instance returned and the "isRunning" - method of EclipseStarter returns true afterwards.
If I then invoke the normal "run"-method I get the following error message:

Java exception occurred:
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)

According to the javadoc I am passing the parameters "-application", "myApplication". Are there any more parameters I have to provide? How can the files "myApplication.ini" and ".eclipseproduct" in the rcp-apps' main directory and the "config.ini" in the configuration directory be found anyway?

thx in advance,


chris
Previous Topic:Re: Better way to update UI with a job
Next Topic:Quartzcron job expression
Goto Forum:
  


Current Time: Sat May 11 05:51:55 GMT 2024

Powered by FUDForum. Page generated in 0.03312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top