java – Why does my jar files not show an output?-ThrowExceptions

Exception or error:

I want to know why it doesnt let me see the output of my .jar file

<?php

 if(isset($_POST['submit'])){   
 exec('java -jar "C:\temp\s2m.jar"', $response);

 foreach ($response as $text){
 print $text . '<br>';
}
}

?>

It is endlessly loading and shows this error after 10 min of loading

“HTTP Error 500.0 – Internal Server Error”

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *