Re: Simple Java problem
| From: | Mike Bridge | Date: | Wed, 06 Sep 2000 17:30:48 +0000 |
| Subject: | Re: Simple Java problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15559@lists.php.net to get a copy of this message | ||
Do you have the directory that contains the libjava.so (and
the other .so files that java needs) in your LD_LIBRARY_PATH or
in the /etc/ld.so.conf file? It may be that it can't find them
when it's trying to start java.
-Mike
On Wed, Sep 06, 2000 at 03:21:11PM +0200, Martin wrote:
> Hi !
>
> I got PHP Version 4.0.2 with the following configuration:
> './configure' '--with-apxs=/etc/httpd/bin/apxs'
> '--with-pgsql=/usr/local/pgsql' '--enable-sysvshm=yes'
> '--enable-sysvsem=yes' '--enable-bcmath=yes' '--with-imap'
> '--enable-ftp'
> '--with-pdflib=../pdflib-3.01/' '--without-mysql' '--with-gnu-ld'
> '--with-java=/usr/jdk1.2' '--with-jpeg-dir=/usr/lib'
> '--enable-versioning'
>
> Okay. Someone told me that I could use java like this:
> $system = new Java( "java.lang.System" );
> print "Java Version: " . $system->getProperty( "java.version" );
>
> So creating a class Java with the classname a the first parameter and
> then calling it almost like a php-class.
>
> When trying the code, I get:
> Fatal error: Cannot instantiate non-existent class: java in javatest.php
> on line 2
>
> What is wrong ?
>
> Martin
>
>
>
--
Mike Bridge <bridge@gsnet.com>
Global Sourcing Network
// Buying and selling heavy equipment and trucks just became
// more secure with online escrow services to protect your
// transaction. Check out the link on our Web site to our
// new affiliate, "Virtual Surety".