title: sysLoader.getResource() problem in java
body: <p>I am having following lines of code.</p>
  
  <pre><code>sysLoader = (URLClassLoader)Thread.currentThread().getContextClassLoader();
  url = sysLoader.getResource("tempFile.txt");
  </code></pre>
  
  <p>It is giving an weird problem. If I run this from a path where there is no space in the path (Folder names) then it is running fine. But if the path contains any spaces (line "c:\New Foler...") then it is not working.</p>
  
  <p>How to solve this?</p>
  
  <p>EDIT: In more detail - I inspected the sysloader object. </p>
  
  <blockquote>
    <p>sysloader -> UCP -> path </p>
  </blockquote>
  
  <p>Is having a path with character %20 instead of space </p>
  
  <p>And therefore all the URLs are null. </p>
  
  <p>How to resolve this?</p>