GCJ's URLClassloader and 'core' protocol

Sal gcj@svf.dreamhost.com
Fri Jun 25 22:04:00 GMT 2004


Andrew Haley wrote:
> Sal writes:
> > I've read the docs and looked into the code for URLClassloader and the 
> > 'core' protocol, but am still unable to figure out how to get it to work 
> > properly. Some help would be greatly appreciated.
> For loading classes you should used the "gcjlib" protocol.

I tried this protocol also... without any success. Does it work for 
statically linked classes? From what I could gather from the source 
code, it only will load resources from .so/shared objects.
I'de like to keep all my classes linked into a self contained executable 
if possible... though I think the ability to do both is important.
> You should be able to load resources from shared libraries too.

Resources as in, images/.class files? What about natively compiled 
classes? This is what I'm stuck on. I'll look in to the code a little 
more to try to figure out whats going on...
If this isn't possible a pointer or two on where to poke around for 
implementing this would be great, I'm still new to GCJ internals (and 
compiler architecture in general).
Sorry for the headache, but I do a lot of research involving custom 
classloaders (distributed computing, sandboxing), being able to compile 
and distribute these as self contained executables would be *really* 
great :)
- Sal


More information about the Java mailing list

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