classloading from so

Lars Andersen lars@rimfaxe.com
Tue Sep 24 03:11:00 GMT 2002


If I were to load the class org.pack.Foo like this
class.forName("org.pack.Foo");
the following lib would be searched according to the .so naming scheme :
lib-org-pack.so (Should be in /usr/lib or LD_LIBRARY_PATH )
What if an app loaded that class, then lib-org-pack.so is recompiled.
If the app should issue another class.forName, would it load the newly
compiled .so ? Or would the app have to be restarted?
And another related question : Is there some debugging trick to tell
which classes are executed as native code, and which are interpreted? 
(I want to check if it loads the .so just right, and isn't interpreting
some class from CLASSPATH)
You could for example have part of org.apache compiled into
lib-org-apache.so, and other parts in a jar-file in CLASSPATH.
/Lars Andersen


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /