Robert,

If I run your code on my installation, all I get is the phpInfo() output. If
I comment out that line, it returns:

Java version=1.4.0-beta
Java vendor=Sun Microsystems Inc.
OS=Linux 2.2.14-5.0 on i386
Thursday, June 21, 2001 at 9:59:05 AM GMT-08:00

...as I would expect.

It would appear that the error refers to PHP not being able to instantiate
the PHP Java class. I'd check the following:

Your php.ini line:

java.extension=/usr/local/lib/php/extensions/libphp_java.so

Be sure that the file actually exists there. On my system, it's installed in
/usr/local/lib/php/extensions/no-debug-non-zts-20001222, and the lines in
php.ini that load it are different from yours:

extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20001222
extension = libphp_java.so

-Jim



"Robert Vetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

>
>
> Jim Kirkpatrick wrote:
> >
> > Robert,
> >
> > Please include the php code you're using to instantiate the class. That
will
> > give me a better idea of what to suggest.
> >
>
> Hi Jim,
>
> Thanks for the response. Here comes the code:
>
> <?
>   phpinfo();
>   $system = new Java("java.lang.System");
>   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";
>
> ?>
>
>
> Robert
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to