This is what I use:
java.class.path=/usr/local/lib/php_java.jar
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20001222
extension=libphp_java.so
I also have the following environment settings but you can substitute these with php.ini entries if you prefer (I prefer the environment since I can use variable substitutions which allows me to switch jdk's easily). The corresponding ini entries to the following are are java.home, java.class.path and java.library.path respectively.
export JAVA_HOME=/opt/jdk1.3
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar
export LD_LIBRARY_PATH=/usr/local/lib/php/extensions/no-debug-non-zts-20001222
:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/hotspot:$JAVA_HOME/jre/lib/i386/native_threads
Note that I'm building from the latest CVS version of PHP 4 which contains a fix to the ext/java/config.m4 which is required to build with Sun's JDK1.3 and/or any other hotspot JDK.
Alex