You have to use the method
getClass().getResource(String name)
This returns a java.io.URL
This method is inherited from Object, so you can only
use it in an instance context. Within a static context
you have to use
ClassLoader.getSystemResource(String name)