Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Launching Java process from a plugin
Launching Java process from a plugin [message #331065] Fri, 22 August 2008 15:50 Go to next message
Eclipse UserFriend
Originally posted by: matxdr.yahoo.com

Hi,

I have a plugin that contains a little program that can be launched on a
menu selection. Basically, when the user click on the menu, I want to
launch a new VM running a main class packaged in my plugin, and display
the output on the Eclipse console. The required classpath for the new VM
is the plugin jar. How can I do it? I have seen the example "Running a
Java program" in the documentation, but it describes how to launch a main
class from a project within the workspace, which is not my case. There is
also the "We Have Lift-off: The Launching Framework in Eclipse" article,
but it implies run config which I do not need (do I have to this way?). I
would appreciate any pointers to the right direction.

Thanks!
Alain
Re: Launching Java process from a plugin [message #333760 is a reply to message #331065] Fri, 02 January 2009 20:36 Go to previous message
Bill Winspur is currently offline Bill WinspurFriend
Messages: 180
Registered: July 2009
Senior Member
On Fri, 22 Aug 2008 15:50:48 +0000, Alain wrote:

> Hi,
>
> I have a plugin that contains a little program that can be launched on a
> menu selection. Basically, when the user click on the menu, I want to
> launch a new VM running a main class packaged in my plugin, and display
> the output on the Eclipse console. The required classpath for the new VM
> is the plugin jar. How can I do it? I have seen the example "Running a
> Java program" in the documentation, but it describes how to launch a
> main class from a project within the workspace, which is not my case.
> There is also the "We Have Lift-off: The Launching Framework in Eclipse"
> article, but it implies run config which I do not need (do I have to
> this way?). I would appreciate any pointers to the right direction.
>
> Thanks!
> Alain

Have a look at these articles:

http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html
http://www.eclipse.org/articles/Article-Java-launch/launchin g-java.html.

Bill
Previous Topic:Howto EclipseApplication Launcher?
Next Topic:artifacts.xml file is misplaced when using -configuration parameter
Goto Forum:
  


Current Time: Thu Dec 26 14:45:47 GMT 2024

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

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

Back to the top