Hi
I try to create a URL Object to load all my game resources.
The Method for this:
public static URL getFileURL(String aFile) {
return getURL("file:"+aFile);
}
This Method works just fine. But i thought it would be bette to create the URL Object via class Loader. So i rewrote it:
public static URL getFileURL(String aFile) {
return new Resource().getClass().getClassLoader().getResource(file);
}
This Method doesn’t work… Can someone tell me why?
Thanks & good night
greets from Switzerland