--- lib/java/lang/VMClassLoader.java.orig 2003-12-21 11:36:24.000000000 +0100 +++ lib/java/lang/VMClassLoader.java 2004-03-13 18:01:49.000000000 +0100 @@ -46,6 +46,8 @@ import java.security.ProtectionDomain; import java.net.URL; +import java.net.MalformedURLException; +import java.io.File; import java.io.IOException; import java.util.Enumeration; import java.util.Map; @@ -138,6 +142,19 @@ */ static URL getResource(String name) { + String location = "/usr/local/classpath/share/classpath/" + name; + File resource = new File(location); + try + { + if (resource.exists() && !resource.isDirectory()) + return resource.toURL(); + } + catch (MalformedURLException mue) + { + // Should never happen... + throw (InternalError) (new InternalError().initCause(mue)); + } + return null; }