ID:               16770
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Java related
 Operating System: Solaris 2.8
 PHP Version:      4.0CVS-2002-04-23
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:
------------------------------------------------------------------------

[2002-09-09 10:32:36] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

I believe this isn't a bug, and a case of php.ini's being wrong.  But
in either case, I've borked around in the ext/java code a bit too....
test it out if you can.

------------------------------------------------------------------------

[2002-04-23 16:58:34] [EMAIL PROTECTED]

correct Summary line

------------------------------------------------------------------------

[2002-04-23 16:57:46] [EMAIL PROTECTED]

---Environment------------------------------------
Solaris Sparc 2.8 Patchkit as of 5/Apr/2002
Gcc 3.0.3 (Sunfreeware)
binutils 2.11.2 (Sunfreeware)
GNU Make version 3.79.1 (Sunfreeware)
GNU libtool 1.4 (1.920 2001/04/24 23:26:18) (Sunfreeware)
java j2sdk1.4.0
Zlib 1.1.4 (source)
php 4.1.2

PATH includes /usr/j2sdk1.4.0/bin
JAVA_HOME /usr/j2sdk1.4.0
---------------------------------------------------

---configure---------------------------------------
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--without-mysql \
--with-zlib-dir=/usr/local \
--with-zlib=/usr/local \
--with-java=/usr/j2sdk1.4.0
---------------------------------------------------

---[php.ini]---------------------------------------
[Java]
java.home=/usr/j2sdk1.4.0
java.library.path=/usr/local/php/lib
java.library=/usr/j2sdk1.4.0/jre/lib/sparcv9/libjava.so
;have also tried
;java.library=/usr/j2sdk1.4.0/jre/lib/sparcv9/server/libjvm.so
;java.library=/usr/j2sdk1.4.0/jre/lib/sparc/libjvm.so
java.class.path=/usr/local/php/lib/php_java.jar
extension_dir=/usr/local/lib/php/extensions
extension=java.so
----------------------------------------------------

---php code-----------------------------------------
<head>
<title>Test Page for PHP/Java</title>
</head>
<?php
      $system_inst = new Java('java.lang.System');

      // Test PHP's ability to get a property from a Java class
      echo "The version of Java running is";
      $system_inst->getProperty("java.version") ;
?>
</body>
</html>
----------------------------------------------------

---error message------------------------------------
Fatal error: Cannot instantiate non-existent class: java in
/usr/local/apache/htdocs/php_java.php on line 6
-----------------------------------------------------


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16770&edit=1

Reply via email to