From: <php...@li...> - 2007-03-21 16:24:14
|
Hi, [please excuse the delay] > When I run the install.sh script it overwrites my > php.ini with the PHP/Java Bridge configuration. It doesn't do this if you php installation supports an /etc/php.d/ directory. Please see the php --configure help for details (php's configure, not the bridge configure script). > install.sh created to my original php.ini, the > extension just doesn't load. The only thing the extension need is a extension=java.so entry. > In a previous email, Jost told me that PHP/Java > Bridge does not care about > CLASSPATH variable, Some older JDK may still read the CLASSPATH environment variable. But since Apache discards all environment variables and executes in a clean environment you cannot pass it to the VM (if you want to run the VM as a sub-component of Apache). > getSystemResource method of the ClassLoader It should find the resources in the standard Java repository, which is /usr/share/java/ext or /usr/java/packages/lib/ext. > So, how should I indicate where those Just modify the standard location using the -Djava.ext.dirs=... option. If you want to pass this option from Apache, use a wrapper script, please see our FAQ for details. BTW: Isn't that backwards? If you want to load resources from a user dir, why don't you simply use getResource() instead of getSystemResource()? Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |