File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Launching Eclipse Programatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Launching Eclipse Programatically" Watch "Launching Eclipse Programatically" New topic

Launching Eclipse Programatically

S Dutta

Joined: Nov 06, 2003
Posts: 2
We have a two applications one is a Eclipse Rich Client and another a regular Swing App.

Conceptually I need to Launch eclipse from the Swing App. This is because I need some bi-directional communication bewteen the two applications.

I know that I can use Runtime.exec() to lanch the eclipse App..but this creates a different process and it becomes harder to have bidirectional communitcation( i can use RMI but that will require a substantial amount of refcatoring).

I am wondering if anyone knows how to programtically launch eclipse in a seperate thread in a single JVM. Is this possible at all??

Any help pointers would be appreciated.
With Regards
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

Welcome to Javaranch!

Since Eclipse is written in Java, you could call the main method that starts Eclipse from within a thread of your java program. You could download the Eclipse API to see which class it is.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Launching Eclipse Programatically
jQuery in Action, 3rd edition