title: Cannot Create New file: The device is not ready
body: <p>I am Creating a new File using Java but am getting tis exception:</p>
  
  <pre><code>Exception in thread "main" java.io.IOException: The device is not ready
  at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  at java.io.File.createNewFile(File.java:947)
  at pdfconverter.PdfConverter.main(PdfConverter.java:96)
  </code></pre>
  
  <p>Java Result: 1</p>
  
  <p>In My line 96 is this Condition:</p>
  
  <pre><code>if (!logfile.exists()) {
          logfile.createNewFile();//line 96
      }
  </code></pre>
  
  <p>I have used this amny times before and I do not understand what's going on Because I am logged in as Administrator. Please Help.</p>