Hello, I need help with a classloader problem. Can someone tell me the difference between:
String s = "/data/demo.txt"; URL u1 = this.getClass().getResource(s); URL u2 = this.getClass().getClassLoader().getResource(s); My problem: u1 is != null (so the path is correct and the resouce is in the JAR, etc) but u2 is *always* null. I've been looking at the Java VM source (Sun) and getResource() just calls getClassLoader0() just like getClassLoader() does (there is no SecurityManager installed). Regards, -- Aaron Digulla --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]