Cannot Create New file: The device is not ready

file, file-io, java

Solution

The problem was the Path, which was not found because someone had renamed the drive letter from F to D. Sorry for not noticing that In time.

Problem

I am Creating a new File using Java but am getting tis exception: ``` 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) ``` Java Result: 1 In My line 96 is this Condition: ``` if (!logfile.exists()) { logfile.createNewFile();//line 96 } ``` 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.

Original source