resource files is being picked from user's desktop and not from jar file
Hi,
I have come across with a problem while running my application using web start.
I am having a .txt file in a jar file...and the link to this jar file has been specified in the jnlp file.
Now, i am loading the .txt file using this code :
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream releaseNumberInputStream = cl.getResourceAsStream(
"release_number.txt");
Now everything works as expected if there is no "release_number.txt" file present at the user's desktop in windows-xp OS. But when this txt file is present at the desktop, somehow this file is being picked up and not the one that is present in the jar file. Ideally, the resource file in the jar file should be loaded. Why this file is being picked up from the desktop first?
Please help me out on this.
Thanks,
gshankar

