I create a new file using Java, but get an 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, this Condition:
if (!logfile.exists()) { logfile.createNewFile();
I have used this before and I donβt understand what is happening. Since I logged in as administrator. Please, help.
source share