From: <php...@li...> - 2007-04-23 15:39:33
|
Hi, > - We need to make Tomcat handle JVM in order not to > have the JVM loaded and > get-rid-of for every single method call. > - We need that php files be served by Apache not > Tomcat. Just copy JavaBridge.war to $CATALINA_HOME/webapps/ > - We need to use the c impementation not the pure > PHP implementation of the > bridge. Download and install the java.so. On Ubuntu: dpkg -i php-java-bridge*.deb Restart tomcat and apache and write a simple test file: <?php /* mytest.php */ require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $props = java("java.lang.System")->getProperties(); $array = java_values($props); print_r($array); ?> Browse to http://localhost/mytest.php. Please see the INSTALL.J2EE document contained in the "J2EE" binary download for details. Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |