Shared LIbraries Registering classes

Steve Pribyl steve@netfuel.com
Mon Jul 7 18:50:00 GMT 2003


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


More information about the Java mailing list

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