1 Reply Latest reply on Jan 12, 2009 2:07 AM by Jean-Frederic Clere

    how to call Java from php

    pengster Newbie

      Hi,

      I managed to configure JBossWeb 1.0.1 GA with php5 servlet
      following this tutorial
      http://www.samaxes.com/php-tutorial/installJBossWeb.php#install_jbossweb

      My php pages work but I cannot seem to call Java from my php pages.
      I tried doing this
      <?php
      echo 'Call Java';
      $system = new Java('java.lang.System');
      echo 'Finish';
      ?>

      All I got was the "Call Java" output-ed.

      any help is appreciated
      pengster

      WinXP Pro SP3
      jbossweb-1.0.1.GA-windows-i686
      php5servlet-windows-i586-SP1
      php 5.2.8
      JDK 1.6.0-b105