This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Shared LIbraries Registering classes
- From: Steve Pribyl <steve at netfuel dot com>
- To: gcj mail list <java at gcc dot gnu dot org>
- Date: Mon, 07 Jul 2003 13:49:42 -0500
- Subject: Shared LIbraries Registering classes
- Organization: Netfuel
I am working on getting SharedLibLoader to work and have some questions
about it.
What causes shared libraries to register classes? Does an _init function
need to be written?
How about non-shared libraries?
Does the SharedLibLoader code actually work?
a handle is returned from dlopen and saved.
findClasses calls super(findClass) -> ClassLoader find class.
As far as I can tell if the library was opened without the global
flag(RTLD_GLOBAL) you need to explicitly search the library using dlsym.
I have already one patch that fixes the init code to null terminate the
library name. This was preventing the library from being found in some
cases.
Thanks
Steve
--
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner