|
From: <php...@li...> - 2007-08-04 16:03:29
|
Hi Filip,
> Actually, the jar files are not in a remote server.
then it is better to use a local URL. For example:
$here=getcwd();
java_require("$here/jar1.jar;$here/jar2.jar;...");
> could it be (another) Java classpath problem? All the
I don't think so.
> jar files inside java_require() should be in my Java
> classpath right?
No. -- Forget about the java classpath, this is an insane concept.
Please use the jar repository or java_require() instead.
> I assume that is what java_reset() does(?).
Yes. It clears the loader cache, which means that the dynamic loader
must load the classes again and again.
> did this because sometimes my Wiki runs sluggishly
> after I visit a page that invokes PHP-Java Bridge.
> That is true, even if the next pages I view do not use
> PHP-Java Bridge anymore.
Interesting. Java runs as a separate process. The only common
resource used by both processes is memory. Or this is a placebo
effect.
> java_reset()? Maybe, from an old local copy of some
> website?
It was documented in java.c, which doesn't exist anymore. But AFAIK
the documentation contained a warning that java_reset() should never
be used in user scripts.
If you have still performance problems please open a new ticket and
add a
echo java("java.lang.System")->currentTimeMillis();
to the beginning and the end of the script.
Regards,
Jost Boekemeier
__________________________________
Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever
|