title: Java URL("file://") doesn't work on Windows XP
body: <p>For some reason the following code doesn't work on Windows XP. </p>
  
  <pre><code>new URL("file://" + tempfile.getAbsolutePath());
  </code></pre>
  
  <p>I'm using Java 1.6. </p>
  
  <pre><code>Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
  Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
  </code></pre>
  
  <p>However, the same code just works fine in OS X (Lion) and Java 1.6 </p>
  
  <pre><code>java version "1.6.0_29"
  Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
  Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
  </code></pre>
  
  <p>Linux (Linux 2.6.32-38-generic #83-Ubuntu x86_64 GNU/Linux) with Java 1.6 </p>
  
  <pre><code>java version "1.6.0_26"
  Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
  Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
  </code></pre>
  
  <p>Based on <a href="https://stackoverflow.com/questions/3616795/what-is-the-difference-between-file-file-file">this</a> the above code should work.   </p>