Re: PHP & JAVA

From: Date: Fri, 17 Nov 2000 15:14:19 +0000
Subject: Re: PHP & JAVA
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-25909@lists.php.net to get a copy of this message
Jon Zuazo <jzua@consulnor.com> wrote: > Hi Alex, I have tried your code but it returns the following error: > > Fatal error: java.lang.NoClassDefFoundError: net/php/reflect in C:\Archivos > de programa\PHPEd\php1C2.php on line 4 > > I have installed jre1.3 and have configured php.ini with the following > entries: > > extension=php_java.dll > > [Java] > java.class.path = .\php_java.jar > java.home = c:\javasoft > java.library = c:\javasoft\jre\1.3\bin\hotspot\jvm.dll > java.library.path = .\ > > On the other hand, as I am running win32 you mentioned that there is avaible > a module for servelts. Do you know where to get this modules? > > Thanks for you help > Where are your php_java.dll and php_java.jar located? It looks like your php_java.jar is either not being found or is missing a class (reflect.java). What's its size? The Java and Servlet binaries for Win32 can be downloaded from the Win32 binaries section in http://www.php.net/downloads.php for the corresponding jdk levels. As I said, you will need a servlet capable web server such as Tomcat to run the servlet module. Also, I think these binaries were built with php 4.0.0 so they will probably not be compatible with a later release of php. Various other websites have more up to date binaries (e.g. http://download.sourceforge.net/pub/mirrors/php/distributions/ has php4.0.2 versions). If you want the absolute latest versions based on what's currently on CVS you can try http://www.php4win.de/. Alex

« previous php.general (#25909) next »