This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ's URLClassloader and 'core' protocol
- From: Sal <gcj at svf dot dreamhost dot com>
- To: gnustuff at thisiscool dot com
- Cc: java at gcc dot gnu dot org
- Date: Mon, 28 Jun 2004 11:25:02 -0400
- Subject: Re: GCJ's URLClassloader and 'core' protocol
- References: <598F072URSN53F06574A61TTPNL4PK.40dd7ff3@p733>
Mohan Embar wrote:
> 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.
Out of curiosity, what platform(s) are you attempting this on?
Win with your latest compiler build. I do have a Linux box I can build
on though if it is a platform specific issue.
I had assumed since staticly linked classes worked in windows,
referencing them from within a custom classloader would be possible too...
- Sal