Cannot make file java.io.IOException: No such file or directory

前端 未结 8 1793
-上瘾入骨i
-上瘾入骨i 2020-12-06 09:11

I am trying to create a file on the filesystem, but I keep getting this exception:

java.io.IOException: No such file or directory

I have an

相关标签:
8条回答
  • 2020-12-06 10:01

    I got the same problem when using rest-easy. After searching while i figured that this error occured when there is no place to keep temporary files. So in tomcat you can just create tomcat-root/temp folder.

    0 讨论(0)
  • 2020-12-06 10:01

    i fixed my problem by this code on linux file system

    if (!file.exists())
        Files.createFile(file.toPath());
    
    0 讨论(0)
提交回复
热议问题