I’m writing a wrapper application that will be used to provide an abstraction layer around an existing application that is currently called from the command line. How would I go about calling the main method in the existing app from within my wrapper app?
I’m writing a wrapper application that will be used to provide an abstraction layer
Share
Java main methods are static, so you could just call it as:
Of course, this is assuming you looked at the other application’s manifest file to see which class main resides in.
Set
argsto whatever you would usually pass in on the command line.