see this adress before reading this message:
http://www.phpbuilder.com/columns/marknold20001221.php3
I work under Windows NT and I try to configure php.ini to use classes
java. I added to the end of the PATH environment variable:;C:\jdk1.2.2\bin. But I
doesn't understand the direction of this sentence: It is also important to note in your autoexec.bat file, the PHP Java extension ignores the JAVA_HOME and CLASSPATH set up in the environment. This is important because these items must be set correctly in your php.ini file for the Java extension to work. Is it
necessary that I modify the file autoexec.bat and which instructions
must I add? My following configuration has been tested with Apache 1.3.20, PHP 4.0.5 binaries and JDK 1.2.2 from java.sun.com. I modified my php.ini like that:
[Java]
java.home = "c:\jdk1.2.2"
java.library = "c:\jdk\jre\bin\classic\jvm.dll"
extension=php_java.dll
java.library.path=c:\Program Files\Apache Group\Apache\php\extensions\
java.class.path="c:\Program Files\Apache Group\Apache\php\extensions\php_java.jar;e:\MunierP\phpclasses"
I tested my installation with your example (my file's name is java.php) and the browser returned
this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
More information about this error may be available in the server error log. The error log file display this message: [Wed May 30 14:03:10 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/php/php.exe