This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]