static linking
Jeff Sturm
jeff.sturm@appnet.com
Wed Dec 6 07:54:00 GMT 2000
Anthony Green wrote:
> Jeff wrote:
> > 2) classes loaded dynamically (via Class.forName) don't get linked
> >
> > I don't see any good solution. I got around it by linking the following
> dummy
> > class into my executable, but YMMV:
>> Hmm.. won't the class loader rummage around in appropriately named shared
> libraries? What happens when you make a symlink from libgcj.so to gnu-gcj.so?
Interesting. It might have worked, had gnu-gcj.so been available, but I
suspect there's a bootstrap problem also because VMClassLoader needs the
URL handlers during initialization.
The exact failure was inifite recursion in VMClassLoader.init until
stack was exhausted. Explicitly linking gcj.protocol.file.Handler
solved it.
Jeff
More information about the Java
mailing list