From: <php...@li...> - 2006-10-10 13:14:49
|
Hi, Jost. Thanks for your tremendous contributions to the PHP and Java user communities. Your reply actual gave me the answer to my problem. Lately I've gotten used to using PHP functions with pre-defined default values for arguments that are not specified when the function is called. The Java method I was trying to call had a few optional parameters, and I just left them off, foolishly thinking they would get filled in by default... and that was causing the error. Once I gave it all the parameters it expected, it worked fine. Silly mistake! Once I overcame that, I had another problem which I'll outline here for posterity: I couldn't get the "java.class.path" value defined properly until I came across these two bits you posted in 2005: "According to the README it is java.classpath" and "Please don't forget the double-quotes" http://www.thescripts.com/forum/thread11467.html "java.classpath" vs. "java.class.path" -- There's probably a lot of confusion about this since http://php.net/java states it as "java.class.path" but apparently JavaBridge requires "java.classpath" Leaving off the quotes might be another common problem since lots of settings in php.ini don't require them -- for example setting extension_dir. But java.classpath didn't work for me until I added the quotes. Thanks again. -Kevin |