Hi,

I have compiled php 4.0.4 with the following config, so that I may run some
java code:

./configure --prefix=/usr --with-config-file-path=/etc --enable-shared --wit
h-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system --without
-mysql --with-java=/usr/local/j2sdk1.3.1/



The JVM is Blackdown
php.ini [java] is as follows:

java.class.path=/usr/lib/php_java.jar:/usr/local/j2sdk1.3.1/jre/lib/rt.jar
java.home=/usr/local/j2sdk1.3.1
java.library=/usr/local/j2sdk1.3.1/jre/lib/i386/classic/libjvm.so
java.library.path=/usr/lib/php4:/usr/lib/php/extensions/no-debug-non-zts-200
01214:/usr/lib:/usr/local/j2sdk1.3.1/jre/lib/i386:/usr/local/j2sdk1.3.1/jre/
lib/i386/classic:/usr/local/j2sdk1.3.1/jre/lib/i386/native_threads



I attempt to execute the following php file from the prompt:

<?php
  $javaDate = new ("java.util.Date");
  echo $javaDate->toString();
?>



And I receive the following output:

php: relocation error: /usr/local/j2sdk1.3.1/jre/lib/i386/classic/libjvm.so:
undefined symbol: jdk_pthread_sigmask
security properties not found. using defaults.
can't open /usr/local/j2sdk1.3.1/lib/tzmappings
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html

Tue Jan 08 13:07:57 GMT+00:00 2002<BR>



This says to me that the toString call worked, and the java code is being
executed, but I need to know what the error here is, and what I am doing
wrong - can anybody help?

Thanks,
J


-- 
PHP Install 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