Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-20 Thread Fraser MacKenzie
WAHO! It works! Thanks Alex!! Fraser On Fri, 19 Jan 2001, Alex Akilov wrote: > Fraser, > > Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal, > export > >LD_LIBRARY_PATH=/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/class

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser, Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal, export LD_LIBRARY_PATH=/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/classic:/home/local/java/jdk1.2.2/jre/lib/i386/native_threads and rerun ldd libjava.so. If everything works,

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
Yep. ldd libjava.so produces: libhpi.so => not found libnsl.so.1 => /lib/libnsl.so.1 (0x00143000) libdl.so.2 => /lib/libdl.so.2 (0x0015a000) libjvm.so => not found libc.so.6 => /lib/libc.so.6 (0x0015f000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser MacKenzie wrote: > If I don't actually specify the entire path to libjava.so, I get the > following error: > > Fatal error: Unable to load Java Library libjava.so, > error: libhpi.so: cannot open shared object file: No such file or > directory in /home/rondaks_portal/httpd/docs/k2test/inde

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
If I don't actually specify the entire path to libjava.so, I get the following error: Fatal error: Unable to load Java Library libjava.so, error: libhpi.so: cannot open shared object file: No such file or directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34 So, when I actual

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser MacKenzie wrote: > Here is my configuration now: > > [Java] > java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar > java.home=/home/local/java/jdk1.2.2 > >java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386:/home/loc

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
Ok. I have done what you said, but I am now getting: Fatal error: Unable to load Java Library /home/local/java/jdk1.2.2/jre/lib/i386/libjava.so, error: libhpi.so: cannot open shared object file: No such file or directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34 Fraser Mac

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser MacKenzie wrote: > Alex, Ok...so far, I have progress. I have PHP recognizing Java... or at > least, phpinfo() does. > > Now, when I try to do a new Java("class"); > > I get the following error: > > Fatal error: Unable to load Java Library > >/home/local/java/jdk1.2.2/jre/lib/i386/classi

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-18 Thread Fraser MacKenzie
Ok. Alex, here it is: [java] java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar:/home/local/java/jdk1.2.2/jre/lib:/home/local/java/jdk1.2.2/jre/bin java.home=/home/local/java/jdk1.2.2/bin:/home/local/java/jdk1.2.2/jre/bin java.library.path=/home/local/src/php-4.0.4/ext/java:/home/lo

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-18 Thread Alex Akilov
Eduard and Fraser, I can try and help you if you list the java section of your php.ini and indicate what platform you're trying to run on. Additional information such as PATH, CLASSPATH and so on would also help. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-11 Thread Cynic
PHP so far AFAIK has problems with JVM. A wouldn't recommend playing with it yet unless you like pulling your hair out. At 16:29 11.1. 2001, Fraser MacKenzie wrote the following: -- >I can get you past this part, but I cannot get you p

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-11 Thread Fraser MacKenzie
I can get you past this part, but I cannot get you past the: unable to instantiate non-existant class: java error. It is driving me bloody nuts. I have tried 3..count em...3 different JDKs now. It has taken up way more of my time than I would have liked... Fraser On Thu, 11 Jan 2001, Eduard

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-11 Thread Eduard Witteveen
>> I was wondering if somebody could give me some links to information >> about running java. > Check out : > > Can someone explain me how PHP interacts with Java ? > -- > http://www.faqts.com/knowledge_base/view.ph

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-11 Thread Philip Olson
Hey Eduard, > I was wondering if somebody could give me some links to information > about running java. Check out : Can someone explain me how PHP interacts with Java ? -- http://www.faqts.com/knowledge_base/view.