classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: SystemClassLoader


From: Jeroen Frijters
Subject: RE: SystemClassLoader
Date: Tue, 2 Dec 2003 11:58:48 +0100

Robert Lougher wrote:
> Looking at the code, the "default" system class loader (in 
> gnu.java.lang...) simply delegates to the bootstrap loader - 
> it doesn't implement findClass.  Obviously, it's not
> difficult to write my own to parse and search the classpath
> (zip, jar, file...).  However, is there any reason why I
> can't simply sub-class URLClassLoader, and construct a 
> list of URLs?  I've got a simple SystemClassLoader based on 
> URLClassLoader and it seems to work OK.

I do the same and I've never noticed any problems with it (and I don't
see any reasons why it should cause a problem). In fact, I think that
Classpath should include an application and extension class loader based
on this idea. It's on my TODO list, but the list is rather long ;-)

Regards,
Jeroen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]