Can browse to php page ok using http://

  The version of Java running is1.4.1_01

but when accessing same page using https:// it fails

  Fatal error: Cannot instantiate non-existent class: java in
/home/online/www/tmp/derek.php on line 5

Any ideas why please?

Thanks

Derek

Browsers Opera 7 and IE 6

php.ini

[Java]
java.class.path = "/usr/local/lib/php/php_java.jar:/home/online/www/java"
java.home = /usr/local/jdk
java.library = /usr/local/jdk/jre/lib/i386/libjava.so
java.library.path = /usr/local/lib/php/extensions/no-debug-non-zts-20020429

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";
      echo $system_inst->getProperty("java.version");
?>
</body>
</html>

PHP Version 4.3.1

      System  Linux home.******.com 2.4.18-5.49 #1 Fri Jun 14 15:16:33 EDT
2002 i686
      Build Date  Mar 11 2003 16:02:29
      Configure Command  './configure' '--prefix=/usr/local/'
'--with-mysql=/usr/local/mysql' '--with-imap' '--with-apxs=/usr/sbin/apxs'
'--enable-track-vars' '--with-mcrypt' '--with-mhash' '--enable-bcmath'
'--with-config-file-path=/etc/httpd' '--with-gd' '--with-sablot'
'--with-expat' '--enable-ftp' '--with-pdflib=/usr/local'
'--with-zlib-dir=/usr' '--with-png-dir=/usr' '--with-kerberos'
'--with-imap-ssl' '--with-jpeg-dir=/usr' '--with-tiff-dir=/usr'
'--with-freetype-dir=/usr' '--with-java=/usr/local/jdk'
      Server API  Apache
      Virtual Directory Support  disabled
      Configuration File (php.ini) Path  /etc/httpd/php.ini
      PHP API  20020918
      PHP Extension  20020429
      Zend Extension  20021010
      Debug Build  no
      Thread Safety  disabled
      Registered PHP Streams  php, http, ftp, compress.zlib









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

Reply via email to