Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to invoke a RCP Standalone APP with JAVA Code
How to invoke a RCP Standalone APP with JAVA Code [message #436921] Tue, 20 September 2005 09:11 Go to next message
Eclipse UserFriend
Originally posted by: sheng.clanfang.com

Hello everyone, IŽm developing a RCP APP, I'd like to invoke it form a
java program, there're two ways:

A first one is using the <code>Runtime</code> class to invoke the
excuteble(.exe) of the RCP application directly;

A second one is to call the the <code>Main</code> Class of the
<code>org.eclipse.core.laucher</code> which contained in the
<code>org.eclipse.platform</code> plugin, with this way, I'd should pass a
series arguments for the call.

My question is, What are the necesary arguments for second way.

Thanks in advance.

Sheng Fang
Re: How to invoke a RCP Standalone APP with JAVA Code [message #436924 is a reply to message #436921] Tue, 20 September 2005 09:49 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
They're documented in:

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

Note that the Eclispe launcher creates a new VM, so it won't run in the same VM as your calling app. Plus, it means that you may need to specify the VM location with the -vm flag, which can get a bit messy.
Re: How to invoke a RCP Standalone APP with JAVA Code [message #436928 is a reply to message #436924] Tue, 20 September 2005 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sheng.clanfang.com

Thanx a lot, Alex.

I want to integrate my RCP app with another java-appliacion, but as you
said, it's a little dificult. Do you know some more way to do it?

Sheng Fang
Re: How to invoke a RCP Standalone APP with JAVA Code [message #436930 is a reply to message #436928] Tue, 20 September 2005 11:20 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
If you want them running in the same VM, why not fire up Eclipse and then host the other application in the same VM, rather than the other way around?
Re: How to invoke a RCP Standalone APP with JAVA Code [message #437049 is a reply to message #436930] Wed, 21 September 2005 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sheng.clanfang.com

Your idea would be good. But I need the Eclipse RCP to run a
eclipse-plugin, this is the real one which I want to integrate into my
JAVA APP, and to modify the whole JAVA-APP to be under the Eclipse
Standard will terrible.

Any suggestion?
Re: How to invoke a RCP Standalone APP with JAVA Code [message #437116 is a reply to message #436928] Wed, 21 September 2005 14:15 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Sheng Fang wrote:
> Thanx a lot, Alex.
> I want to integrate my RCP app with another java-appliacion, but as you
> said, it's a little dificult. Do you know some more way to do it?
> Sheng Fang
>

What about calling into org.eclipse.core.launcher.Main#main(args) or
org.eclipse.core.launcher.Main#run(args)? It didn't look like they
launched a new JVM, but I didn't check to deeply.

Later,
PW


Re: How to invoke a RCP Standalone APP with JAVA Code [message #437132 is a reply to message #437116] Thu, 22 September 2005 08:48 Go to previous message
Eclipse UserFriend
Originally posted by: reg.sheng.clanfang.com

Paul Webster wrote:

> What about calling into org.eclipse.core.launcher.Main#main(args) or
> org.eclipse.core.launcher.Main#run(args)? It didn't look like they
> launched a new JVM, but I didn't check to deeply.

> Later,
> PW

org.eclipse.core.launcher.Main#main(args), this is the method which I'm
calling to now, it truely create a new VM.
Previous Topic:IActionDelegate reuse
Next Topic:open perspective menu: add all perspectives
Goto Forum:
  


Current Time: Sat Dec 07 18:17:47 GMT 2024

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

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

Back to the top