My Application having a .jar file which will do some background syncing operation. I execute the .jar
file in the cmd using java -jar myjar.jar
it is working properly. If I invoke the .jar
from the PHP using pclose(popen("start /B myjar.jar", "r"))
or shell_exec("java -jar myjar.jar")
, The .jar
files Start executing and Stops immediately without throwing any error. Why is this Happening?
PHP Version: 7.0.28 32 Bit
Codeigniter: 3.26
JRE: java version "1.8.0_171" 32 bit
Additional information: I am Using a third party libary sboapi & sbowrapper from SAP. The .jar
file stops working exactly when I call a function from this Library.