I'd like to start a main(String args[]) method that is contained in a *.jar I have to use (don't ask, I'm already fed up).
//this is my own class
class MyInitClass {
public static void main(String args[]) {
SomeJar.MainApp("-port", 8080);
}
}
//this is a keen developers class
class MainApp {
public static void main(String args[]) {
//makes use of the arguments, like starting a socket server
}
}
What is the best way to call such a main method from my own class, preferably in a separate Thread?