Meaningless Drivel is fun!*
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
Author

Launching Eclipse Programatically

S Dutta
Greenhorn

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
Dutta
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30377
    
150

Dutta,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: Launching Eclipse Programatically