Live output from .jar executed by PHP
- by user2926097
I have a php-script which executes a .jar-file:
<?php
passthru("java -jar nlp-server.jar 9000");
?>
I want to display the output generated by this .jar-file on a website. The problematic part is the fact that the .jar-file doesnt finish executing because its a server-application.
Thus navigating to the php-file wont help and I didnt manage to make AJAX work either.
Is there a way to display the "live" output of the .jar-file on a website?