IOException - Access Denied Using FileOutputStream

前端 未结 3 649
孤城傲影
孤城傲影 2020-12-11 19:58

I get the following IOException :

java.io.IOException: Access is denied
 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
 at java.io.File.cre         


        
3条回答
  •  臣服心动
    2020-12-11 20:18

    It also could be that in context where you are launching the application you haven't access rights to the place where you are trying to create the file. Launch the app as admin or create the file in the project folder.

提交回复
热议问题