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

patti_jane picture patti_jane · Mar 26, 2015 · Viewed 18.1k times · Source

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 netbeans and Netbeans error: Project Folder already exists and is not empty. Not only they are addressed for NetBeans 7, but also they didn't work.

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

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!

Answer

Hiraga Taichiro picture Hiraga Taichiro · Nov 26, 2017

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

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

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

  • Open Bit-defender
  • On protection tab click on (View features >)
  • Either you disable (Safe Files) or allow access for 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...