Hi, I have a .jar file which has a command line interface. I want to call the jar file through command prompt and capture the output of the Jar file.

I have tried with the exec() command.

The command I have used is:
Code:
exec('java -jar D:\Development\Filehandler\dist\Filehandler.jar getConfigLang', $result);
Should something else be done before executing this command? like adding path etc???
...