Need help with strange Class#getResource() issue
- by Andreas_D
I have some legacy code that reads a configuration file from an existing jar, like:
URL url = SomeClass.class.getResource("/configuration.properties");
// some more code here using url variable
InputStream in = url.openStream();
Obviously it worked before but when I execute this code, the URL is valid but I get an IOException on the third line,…