Re: Re: Simple Java problem

From: Date: Thu, 07 Sep 2000 11:44:18 +0000
Subject: Re: Re: Simple Java problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-15693@lists.php.net to get a copy of this message
Okay, it's a installation-problem. I will ask my administrator ;-) Martin Mike Bridge wrote: > > 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". > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#15693) next »