From owner-freebsd-questions Sun Jan 20 10:56:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.x9media.com (gwd.kluth.de [62.138.175.130]) by hub.freebsd.org (Postfix) with SMTP id 8D7F337B404 for ; Sun, 20 Jan 2002 10:56:23 -0800 (PST) Received: from tm1 (217.82.30.132) by mail.x9media.com with MERCUR-SMTP/POP3/IMAP4-Server (v3.30.09 XN-0098304) for ; Sun, 20 Jan 2002 19:59:26 +0100 Message-ID: <002301c1a1e4$29296a40$0100a8c0@tm1> From: "tm" To: Subject: php4 + java/ext on freebsd4.4 Date: Sun, 20 Jan 2002 19:56:25 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01C1A1EC.8A8A7C90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C1A1EC.8A8A7C90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, i installed the following ports on freebsd4.4: mysql323-server, apache13-modssl, mod_php4 port, jdk(1.1.8) and want to have php java/ext support. I added the following lines in = the configure.php script of the mod_php4 port. -------------------------------------------------------------------------= ----------------- JAVA "Java Support" ON \ \"JAVA\") echo "CONFIGURE_ARGS+=3D--with-java=3D/usr/local/jdk1.1.8" ;; -------------------------------------------------------------------------= ----------------- my php.ini script: extension=3Dlibphp_java.so [Java] java.class.path =3D /usr/local/lib/php/php_java.jar java.home =3D /usr/local/jdk1.1.8 java.library =3D /usr/local/lib/php/20010901/libphp_java.so java.library.path =3D /usr/local/lib/php -------------------------------------------------------------------------= ----------------- my javatest.php programm: getProperty("java.version")." =
\n"; print "Java vendor=3D".$system->getProperty("java.vendor")."

\n\n"; print "OS=3D".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")."
\n"; $formatter =3D new Java("java.text.SimpleDateFormat","EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date"))."\n"; ?> -------------------------------------------------------------------------= ----------------- I got the following error in the browser window: Fatal error: Cannot instantiate non-existent class: java in = /usr/local/www/data.default/javatest.php on line 3 Any idea ? regards thomas ------=_NextPart_000_0020_01C1A1EC.8A8A7C90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,
 
i installed the following ports on=20 freebsd4.4:
mysql323-server, apache13-modssl, mod_php4 = port,=20 jdk(1.1.8)
 
and want to have php java/ext support. = I added the=20 following lines in the configure.php
script of the mod_php4 = port.
----------------------------------------------------------------= --------------------------
JAVA          =  =20 "Java Support" ON \
\"JAVA\")
echo=20 "CONFIGURE_ARGS+=3D--with-java=3D/usr/local/jdk1.1.8"
;;
----------= -------------------------------------------------------------------------= -------
my php.ini script:
 
extension=3Dlibphp_java.so
[Java]
java.class.path =3D=20 /usr/local/lib/php/php_java.jar
java.home =3D=20 /usr/local/jdk1.1.8
java.library =3D=20 /usr/local/lib/php/20010901/libphp_java.so
java.library.path =3D=20 /usr/local/lib/php
---------------------------------------------------= ---------------------------------------
my javatest.php programm:
 
<?php
 
  $system =3D new=20 Java("java.lang.System");
  print "Java=20 version=3D".$system->getProperty("java.version")." = <br>\n";
 =20 print "Java vendor=3D".$system->getProperty("java.vendor")."=20 <p>\n\n";
  print = "OS=3D".$system->getProperty("os.name")."=20 ".
           &= nbsp; =20 $system->getProperty("os.version")." on=20 ".
           &= nbsp; =20 $system->getProperty("os.arch")." <br>\n";
 
  $formatter =3D new=20 Java("java.text.SimpleDateFormat","EEEE,
     = ;  =20 MMMM dd, yyyy 'at' h:mm:ss a zzzz");
  print = $formatter->format(new=20 Java("java.util.Date"))."\n";
 
?>
-------------------------------------------------------= -----------------------------------
 
I got the following error in the = browser=20 window:
 
Fatal error: Cannot = instantiate=20 non-existent class: java in = /usr/local/www/data.default/javatest.php on=20 line 3
 
Any idea ?
regards thomas
 
------=_NextPart_000_0020_01C1A1EC.8A8A7C90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message