getResource Path question.
Hi,
I have an app thats been running for a long time over a 1.3.1 jvm and recently I had to upgrade the server to tomcat 5.0 and a 1.4.2 jvm. Whenever I needed to load a properties file I use
properties.load(new FileInputStream(getClass().getResource("whatever.filename").getFile()));
As I said this has worked forever but now it is failing because the path returned by the getFile method is replacing the spaces with %20 and the FileInputStream doesnt seem to like this. I know I can fix it by using URLDecoder or something similar but I was hoping to avoid having to go through the entire app and change every use of the getResource function. Is this a change in the way java returns the path from 1.3.1 to 1.4.2 or is there a setting in a ini file or something that the jvm might be using.
Thanks in advance.

