This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
classloading from so
- From: Lars Andersen <lars at rimfaxe dot com>
- To: java at gcc dot gnu dot org
- Date: 24 Sep 2002 12:11:13 +0200
- Subject: classloading from so
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