hai,

i have installed php5,apache2 version in WINDOWS ,i want to integrate php and java

i use apache2.2 and jdk1.5.0_05 for java

FOLDER STRUCTURE
C:\Program Files\Java\jdk1.5.0_05
C:\Program Files\Apache Software Foundation\Apache2.2

i follow the instruction given below

php.ini in c:/../windows folder

  1. in php.ini i made following changes

extension=php_java.dll

[Java]
java.class.path = "C:\php5\ext\php_java.jar"
java.home = "C:\Program Files\Java\jdk1.5.0_05\bin"
java.library = "C:\Program Files\Java\jdk1.5.0_05\jre\bin\server\jvm.dll"
java.library.path ="C:\php5\ext;"

  1. in C:\php5\ext

php_java.dll,php_java.jar files are present

  1. restart the server

  2. when run the following java code

FILE name--java.php:

<?php

$systemInfo = new Java("java.lang.System");

print "Total seconds since January 1, 1970:
".$systemInfo->currentTimeMillis();

?>

its show the ERROR

Apache HTTP Server has encountered a problem and need to close..........

and connection was reset.

is there any mistake in php.ini configuration ?

    Write a Reply...