Launching Java process from a plugin [message #331065] |
Fri, 22 August 2008 15:50 |
Eclipse User |
|
|
|
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 |
Bill Winspur 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
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds