无法在 Jdev Mac 中读取文件

时间:2021-05-26 10:36:20

标签: java macos jdeveloper macos-big-sur

我无法在 macos 上使用 jdeveloper ide 通过 java 代码读取文件。 文件存在并且文件的权限是777,但仍然提示错误。

java.io.FileNotFoundException: /Users/sourabh/Desktop/mytest3.zip (Operation not permitted)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)

有人可以帮忙吗。

0 个答案:

没有答案