From: [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version: 4.0CVS-2002-04-23
PHP Bug Type: Java related
Bug description: get Fatal error: Cannot instantiate non-existent class when running
simple tese
---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 bug report at http://bugs.php.net/?id=16770&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16770&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16770&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16770&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16770&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16770&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16770&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16770&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16770&r=submittedtwice