I have a standalone Java applet that loads and calls a JNI lib at
runtime. I then check the version of the JNI lib and if it's an older
one, I redownload a newer one.
The problem I am having is that while my applet is still running, I
can't seem to get the older lib to unload and have the applet use the
newer one. Even if I replace the older lib on disk with the newer
one, systemload does not seem to want to unlink the older lib. If I
quit the applet and then relaunch it after I download the newer
version of the lib, then it works. But what I need to be able to do
is to unload the older lib at runtime while my applet is still
running.
Does anyone know how to do this in Java 2 using a JNI lib on OS X 10.3?