JRE unable to create file

java.io.IOException
Javadoc
Signals that an I/O exception of some sort has occurred. This class is the general class of exceptions produced by failed or interrupted I/O operations. @author unascribed @see java.io.InputStream @see java.io.OutputStream @since JDK1.0
at java.io.UnixFileSystem.createFileExclusively
(source)

Typical Exception Messages

  1. No such file or directory
  2. Permission denied
  3. Too many open files
  4. File name too long
  5. No space left on device
  6. Read-only file system
  7. Not a directory
  8. Datei oder Verzeichnis nicht gefunden
  9. Invalid argument
  10. Too many open files in system

Specific cases

Solution

chinthana, 9 months ago

There could be quite a few reasons for this, check:

  • If the directory, in which the file is located, exists.
  • Whether you have write permissions for the file.
  • Whether you have directory write permissions.
  • Whether you have too many file handles open.

External results for this pattern (724)

  1. mauricioszabovia GitHub3 weeks ago
    File name too long
    Show stack trace
  2. ghostvia GitHub3 weeks ago
    No such file or directory
    Show stack trace
  3. nhoughtovia GitHub3 weeks ago
    Read-only file system
    Show stack trace
  4. RasmusFunctionsvia GitHub1 month ago
    Datei oder Verzeichnis nicht gefunden
    Show stack trace
  5. MattiGBvia GitHub1 month ago
    No such file or directory
    Show stack trace
  6. masagameplayvia GitHub1 month ago
    Datei oder Verzeichnis nicht gefunden
    Show stack trace
  7. MichaelGrecovia GitHub1 month ago
    Permission denied
    Show stack trace
  8. rafinetizvia GitHub1 month ago
    No such file or directory
    Show stack trace