Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Run a java application from an eclipse plugin
Run a java application from an eclipse plugin [message #1030491] Sun, 31 March 2013 08:01 Go to next message
yosra ben  sghaier is currently offline yosra ben sghaierFriend
Messages: 1
Registered: March 2013
Junior Member
Hello,
Is it possible to run a java application programmatically from an eclipse plugin?
I am creating a plugin where I need to launch a java application from it.


Thank you.
Re: Run a java application from an eclipse plugin [message #1032775 is a reply to message #1030491] Wed, 03 April 2013 12:19 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 771
Registered: July 2009
Location: Grenoble, France
Senior Member
If you just want to run a Java application from an Eclipse plugin (or
any Java code), the best thing is probably to use the ProcessBuilder.

In an Eclipse plugin, you could rely on the org.eclipse.jdt.launching
plugin which provides some better ways to start a new Java process, with
a better integration in existing Eclipse tools (Console, debugger...)

If you want to create your custom launch configuration to the IDE, that
would appear in the "Run" menu, you should read that:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fdebug_launch_adding.htm

--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:No property tester contributes a property
Next Topic:Partition rule to ignore inner end sequences?
Goto Forum:
  


Current Time: Mon Dec 22 08:44:40 GMT 2014

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

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