Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fahimah Khan   on Aug 25 In Java Category.

  
Question Answered By: Rachel Barnes   on Aug 25

I think you could write a little class, extended
from Thread, which will be responsible to call your
other application, like this

public class Caller extends Thread {
public void run() {
String[] parameters = new String[0];
OtherApp.main(parameters);
}
}

and then call it from your calling class:

new Caller().start();

Of course, the other app  must be in the main
application classpath. I think this shuld work

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Run Another Java App in Current JVM Or get search suggestion and latest updates.


Tagged: