• Post Reply Bookmark Topic Watch Topic
  • New Topic

Launching SWT from Swing applications

 
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(SWT) and another a regular Swing App.

Conceptually I need to Launch the SWT App from the Swing App. This is because I need some bi-directional communication bewteen the two applications and it will be a lot of work to redo all the UI in Swing.

I know that I can use Runtime.exec() to lanch the SWT 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 SWT apps(eclipse apps) in a seperate thread in a single JVM. Is this possible at all??

Any help pointers would be appreciated.
With Regards
Dutta
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, your talking about a shared VM. I think that a shared VM is something that Sun has yet to implement. I belive that the VM for Mac allows for a shared VM.

Another way to handle this, maybe, is to find the entry point (main method) of the SWT application and replace it with some sort of init method in an object that you can instantiate from your Swing app.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!