class.getResource(path) not working ??
posted 9 years ago
Class.getResource and ClassLoader.getResource only work for properties inside the class path itself. If you have the full path you should use File, combined with its toURI().toURL() chained method to get the URL for the file. Don't use File's toURL() method, it is deprecated.