If you are running this on apache then it needs to be in the libexec
directory of apache where it looks for the *.so modules that are to be
loaded.

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-----Original Message-----
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Java


no, it isn't. it is in usr/local/lib/php/modules

> Is the libphp_java.so located in your apache libexec directory?
>
>
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: Proyecto de Grado [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Java
>
>
>  I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7
>
>    I did compile php with-java
>
>    1) Java section in php.ini
>    [Java]
>    java.home = /usr/java1.2
>    java.class.path = /usr/local/lib/php/php_java.jar
>    java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
>    java.library.path = /usr/local/lib/php
>
>    2) prueba.php
>    <html>
>    <body>
>    <?
>      $system = new Java();
>      print "Java version=".$system->getProperty("java.version")." <br>\n";
>      print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
>      print "OS=".$system->getProperty("os.name")." ".
>                  $system->getProperty("os.version")." on ".
>                  $system->getProperty("os.arch")." <br>\n";
>
>      $formatter = new Java("java.text.SimpleDateFormat",
>                            "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
>
>      print $formatter->format(new Java("java.util.Date"))."\n";
>
>    ?>
>    <html>
>
>
>    the error in browser is:
>    Fatal error: Cannot instantiate non-existent class: java in
>    /usr/local/apache/htdocs/remotemanager/users/java.php on line 4
>
>  3)  when I run apache in error.log
>
>   PHP Warning:  Unable to load dynamic library './libphp_java.so' -
>  ld.so.1:
>   /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: 
> No such  file  or directory in Unknown on line 0
>   [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
>   configured --
>    resuming normal operations
>   [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: 
> fcntl)
:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to