Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 547
patti_jane Avatar asked Mar 26 '15 20:03

patti_jane


People also ask

How do I delete a project folder in NetBeans?

Right-click on the project node and select Delete. In the confirmation dialog, click Yes. Exit NetBeans. Use the File Manager to manually delete the project folder.

Where are Java projects stored NetBeans?

The project directory is just a place where you've custom-specified the netbeans projects storage. But, the sub-directory myapp is simply one of the project name of your NetBeans projects which is to be stored inside the parent NetBeans projects directory (D:\dev\java\project) here.

Why my project is not showing in NetBeans?

A few thoughts: [1] Instead of cmd 1 use Window -> Projects to open the Projects window. [2] Create a new project. That should open the Projects window if it is not already open. [3] If you still don't have a Projects window then open the NetBeans log file using View -> IDE Log and look for any relevant error messages.


1 Answers

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...

like image 107
Hiraga Taichiro Avatar answered Oct 07 '22 21:10

Hiraga Taichiro