Live output from .jar executed by PHP

Posted by user2926097 on Stack Overflow See other posts from Stack Overflow or by user2926097
Published on 2013-10-27T21:49:43Z Indexed on 2013/10/27 21:53 UTC
Read the original article Hit count: 214

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about php