I am trying to execute a jar file from php
in a windows environment. I want to send a string to a method in a jar file and get the output. Though i checked most of the posts related to this function still couldn't find the solution. Here is what i am executing.
<?php
$name="name";
$output = array();
exec('java -jar C:\Users\HP USER\Desktop\al\hel\out\artifacts\hel_jar\hel.jar', $output, $name);
print_r($output);
The output i am getting is "Array ( )"