NetBeans 8.0.2 Java“项目?文件夹?已经?存在?并且?不是?空”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29287752/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 14:59:58  来源:igfitidea点击:

NetBeans 8.0.2 Java "Project?Folder?already?exists?and?is?not?empty"

javanetbeansnetbeans-8

提问by patti_jane

I've been getting this error message when I want to create a new project in NetBeans. There are two old answers for this question, Project Folder already exists and is not empty- Error in netbeansand Netbeans error: Project Folder already exists and is not empty. Not only they are addressed for NetBeans 7, but also they didn't work.

当我想在 NetBeans 中创建一个新项目时,我一直收到此错误消息。这个问题有两个旧答案,Project Folder already exists and is not empty- Error in netbeansand Netbeans error: Project Folder already exists and is not empty。它们不仅适用于 NetBeans 7,而且它们也不起作用。

I tried:

我试过:

  • deleting project directory,
  • deleting userdir under C:\Users..\AppData\Roaming\NetBeans,
  • deleting cache under C:\Users..\AppData\Local\NetBeans,
  • uninstalling and installing 8.0.2
  • updating JDK to 8.40
  • 删除项目目录,
  • 删除 C:\Users..\AppData\Roaming\NetBeans 下的 userdir,
  • 删除 C:\Users..\AppData\Local\NetBeans 下的缓存,
  • 卸载和安装 8.0.2
  • 将 JDK 更新到 8.40

but none of them worked!

但他们都没有工作!

I really appreciate if you'd suggest a solution. Thanks already!

如果您提出解决方案,我真的很感激。已经谢谢了!



SOLVED:I uninstalled NetBeans from C directory and installed it to the D directory. Then while creating a new project I choose a directory under D. It works fine now!

已解决:我从 C 目录卸载 NetBeans 并将其安装到 D 目录。然后在创建一个新项目时,我选择了 D 下的一个目录。它现在可以正常工作了!

回答by Hiraga Taichiro

There is a 99% chance that this is caused by your antivirus application.

这有 99% 的可能性是由您的防病毒应用程序引起的。

You can check on allow file modification for NetBeans in your antivirus application.

您可以在防病毒应用程序中检查允许修改 NetBeans 的文件。

I have Bit-defender total security 2018, so if you have it follow me:

我有 Bit-defender Total security 2018,所以如果你有它,请跟我来:

  • Open Bit-defender
  • On protection tab click on (View features >)
  • Either you disable (Safe Files) or allow access for NetBeans.
  • 开放位卫士
  • 在保护选项卡上单击(查看功能>)
  • 您可以禁用(安全文件)或允许访问 NetBeans。

By the way I think Bit-defender is blocking applications to access files on the C drive if I'm not mistaken, so that's probably why it worked for you when you put it on the D drive...

顺便说一句,如果我没记错的话,我认为 Bit-defender 会阻止应用程序访问 C 驱动器上的文件,所以这可能就是为什么当你把它放在 D 驱动器上时它对你有用......

回答by Shuvrasankha Paul

Go to C:\Program Files (x86)and delete NetBeansFolder And try to install it again

转到C:\Program Files (x86)并删除 NetBeans文件夹并尝试重新安装

回答by Nivedhithaa Ramamurthi

This might be because of your antivirus. I got the same problem sometime back. I then switched off the DataLockeroption in my antivirus app, after this the problem didn't recur.

这可能是因为您的防病毒软件。有时我遇到了同样的问题。然后我关闭了DataLocker我的防病毒应用程序中的选项,此后问题没有再次出现。

回答by kshitiz

Go to Program Files, delete the NetBeans folder and reinstall it.

转至 Program Files,删除 NetBeans 文件夹并重新安装。