简体   繁体   中英

Eclipse - Access denied when trying to add files to Program Arguments

I have a folder of files that I am trying to add to the program arguments in eclipse, but when I try to execute the program I get the error:

java.io.FileNotFoundException: [path] (Access is denied)

I am pasting the path into the program arguments field under the arguments tab in run configuration. So far I've tried putting a folder in the project directory, my documents and the desktop but it keeps saying "Access is denied." I am doing this all on my laptop where I am the administrator. Thanks for any help.

右键单击您的文件夹,然后设置正确的权限。

I put the files in the directory with the src folder and it worked. Note, you must put the file extension in the arguments field or it won't work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM