I wonder what the difference is between Class.getResource() and ClassLoader.getResource()?
Class.getResource()
ClassLoader.getResource()
edit: I especially want to know if any cachi
The first call searches relative to the .class file while the latter searches relative to the classpath root.
.class
To debug issues like that, I print the URL:
System.out.println( getClass().getResource(getClass().getSimpleName() + ".class") );