Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launching Eclipse Programatically

 
S Dutta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic