title: How to call an executable jar from php with an argument passed to main method
body: <p>I have created an executable jar and it works fine. For the testing purpose, I have used a dummy variable in the main method.</p>
  
  <p>Instead, I need to pass a string variable, while calling this executable jar from php. </p>
  
  <p>In short, I need to:</p>
  
  <ol>
  <li>Call the executable jar from PHP</li>
  <li>While calling the jar, I need to pass a string variable from PHP to the main method of the class inside executable jar.</li>
  </ol>
  
  <p>How can I accomplish the aforesaid? </p>