简体   繁体   English

Windows 10 和 Netbeans:无写入权限

[英]Windows 10 and Netbeans: no write permissions

I've installed Netbeans 8.2.我已经安装了 Netbeans 8.2。 on my clean Windows 10 install.在我干净的 Windows 10 安装上。 Now I want to set up a new project, but when I select my source folder I get the message 'Sources folder is not writable'.现在我想设置一个新项目,但是当我选择我的源文件夹时,我收到消息“源文件夹不可写”。

Then I decided to just change my HTML code, but when I save I've got the message 'Cannot get exclusive access to: D:\\Websites... (probably opened for reading)'.然后我决定只更改我的 HTML 代码,但是当我保存时,我收到消息“无法获得独占访问权限:D:\\Websites...(可能已打开以供阅读)”。

I tried to open Netbeans as administrator, but nothing seems to work.我试图以管理员身份打开 Netbeans,但似乎没有任何效果。 Anybody who had the same problem and could solve it?有谁遇到过同样的问题并且可以解决它吗?

Thanks!谢谢!

If the cause is same as me, check your Antivirus settings, and whitelist Netbeans.如果原因和我一样,请检查您的防病毒设置,并将 Netbeans 列入白名单。

I've experienced the same an hour ago, after checking the writing permissions and creating a new project all together, nothing worked.一个小时前我也遇到过同样的情况,在检查了写入权限并一起创建了一个新项目后,没有任何效果。 Then I remembered I have an antivirus (Bitdefender) with Ransomware protection for my documents folder, I went to the log (of Bitdefender) and yeah, it was blocked as suspicious software, just added it to the trusted list and it works fine now.然后我想起我的文档文件夹有一个带有勒索软件保护的防病毒软件(Bitdefender),我查看了(Bitdefender 的)日志,是的,它被作为可疑软件阻止了,只是将它添加到受信任的列表中,现在它可以正常工作了。

您可以尝试以管理员身份运行 Netbeans。

I solved the problem by allowing the "Netbeans.exe" file through Control folder access.我通过允许“Netbeans.exe”文件通过控制文件夹访问解决了这个问题。

在此处输入图片说明

If someone finds it is not solved by the solution of @Osama Islam.如果有人发现它没有通过@Osama Islam 的解决方案解决。 Try to open the file like this:尝试像这样打开文件:

Select the file in Projects window in netbeans --> right click on it --> Then select "Edit".在 netbeans 的“项目”窗口中选择文件-->右键单击它-->然后选择“编辑”。 ---> Now try to save the content. --->现在尝试保存内容。

I too faced the similar issue and not running any anti virus, the issue is mainly due to permission so I fixed it by giving full access to user for that particular folder, which fixed the problem我也遇到了类似的问题并且没有运行任何防病毒软件,这个问题主要是由于许可,所以我通过授予用户对该特定文件夹的完全访问权限来修复它,从而解决了问题

ICACLS "FolderPath" /INHERITANCE:e /GRANT:r username:(F) /T /C ICACLS "FolderPath" /INHERITANCE:e /GRANT:r 用户名:(F) /T /C

Replace the FolderPath and username as per need根据需要替换 FolderPath 和用户名

Reference: changing permission through command prompt 参考:通过命令提示符更改权限

Just look for programs who have the file open.只需查找打开文件的程序即可。 In my case I executed git diff myfile.js which was blocking the save process.就我而言,我执行了git diff myfile.js ,它阻止了保存过程。

I faced such a problem today.我今天遇到了这样的问题。 On windows 10, If you not installed any antivirus software, check your windows difender protection history.在 Windows 10 上,如果您未安装任何防病毒软件,请检查您的 Windows diffender 保护历史记录。 windows difender blocks the folder modification access. windows diffender 阻止文件夹修改访问。 In protection history, find the relavent notification and select allow on device.在保护历史记录中,找到相关通知并选择允许在设备上。 now this error might be solved!现在这个错误可能会解决!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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