I have a webapp in tomcat server. also i have a java program outside the tomcat server - in linux machine root. i need to call the java program outside and get a response to the webapp. is this possible to do?
Please give me an answer?
Thanks in advance.
You can use exec method on runtime object:
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("whatever_you_want_to_run");
int exitVal = proc.exitValue();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With