Web Hosting Talk







View Full Version : PHP + Java help needed


scsi
01-08-2003, 09:00 AM
Hi all,
I've an old problem about having php working in conjunction with java.

On my raq4 is now running php 4.3 and have been installed jdk1.3.1_06

This is section of my php.ini

[Java]

java.library=/home/java/jdk1.3.1_06/jre/lib/i386/server/libjvm.so
java.class.path=/usr/lib/php/php_java.jar
java.home=/home/java/jdk1.3.1_06
java.library.path=/usr/lib/php/extensions/no-debug-non-zts-20020429
#java.library.path = /usr/local/php-4.3.0/lib/php/20020429-zts
extension=java.so

When i try to execute javatest.php the browser start to search and remain freezed without loading the script.
Content of javatest.php is:

<?php
$system_inst = new java('java.lang.System');

// Test PHP's ability to get a property from a Java class
echo "The version of Java running is" . $system_inst->getProperty("java.version") ;
?>

Please help me to have it working fine!!!!! Any suggestion, tutorial or other will be greatly appreciate.
I'm also ready to pay for a professional installation

White Knight
01-16-2003, 04:00 AM
isnt using java in php a real round about way?
cant you do with getting the jsp done in a jsp server and php done in apache.code such that u can redirect to the jsp page when needed!