Does anyone have Java working with PHP? 
Author Message
 Does anyone have Java working with PHP?

After a day of fighting with Apache 2.0 and PHP 4.3.1, I'm back where I
started.  I have simple PHP scripts working, but no Java from within PHP.

I've followed several articles, mostly this one:

My php.ini which lives in /usr/php-4.3.1 has:

extension_dir = ./modules


PHP is in /usr/php-4.3.1 and was configured with:

--with-java=/usr/java/j2sdk1.4.1_01 --with-apache2=/usr/httpd-2.0.45
(then 'make' and 'make install')

Prior to that, Apache was configured with:

(then 'make' and 'make install')

Using the example from the article above, I get:

Fatal error: Cannot instantiate non-existent class: java in
/usr/local/apache2/htdocs/test.php on line 10

Line 10 is: $systemInfo = new Java("java.lang.System");

What else should I check?  Does anyone see anything I've done wrong?

Wendy in Chandler, AZ

Fri, 14 Oct 2005 10:53:19 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Has anyone done server-client using lisp-java?

2. DYMO Labelwriter - Anyone done any work with SDK

3. Anyone done work on Vehicle Tracking with Clarion?

4. any work being done on java interoperability

5. PHP Java works with http:// but not https://

6. Has anyone ever gotten Java Activator, EAI, and Cosmo 2.1 to work

7. Re Having trouble doing int 21/2521h

8. Help: PHP works with .php but not .html

9. having problems configuring php 4.3.1 and apache2

10. Having PHP create table automatically

11. PHP and having spiders see your links

12. Can this be done efficiently with PHP ?


Powered by phpBB® Forum Software