Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 3, 2005, 11:29 pm
rate this thread
I managed to get the Java extension working on php 4.3.10 after following
various bits of advice from
I have some Java code which runs fine from Java at the command line when
specifying certain JVM options -Xmx and -Xms. I am now calling this class
from php but can't see any way of pasing the arguments to the JVM created
from the php process. Is there something in the jre or php.ini that I can
edit to force these options, or is it hidden somewhere in the java extension
Any suggestions appreciated.
Re: passing JVM options when using php Java extension?
In case anybody else comes across this problem, I solved it using
addJVMOption() in ext/java/java.c and recompiling the extension, not
forgetting to copy across the new java.so file to /usr/local/lib/php.