Re: Classloader woes

2006-10-31 Thread Kenney Westerhof
Hi, this is really a user question, but I'll answer it here. [EMAIL PROTECTED] wrote: 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().ge

Classloader woes

2006-10-31 Thread Aaron . Digulla
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