The project folder already exists and is not empty. Error in netbeans

I am using NetBeans 7.0.1, and when I try to create JAVA APPLICATION, I get an error: " The project folder already exists and is not empty ."

But the fact is that the project folder does not exist, their folder with the same name is not in the directory. Any suggestions would be a big help.

Thanks in advance.

+2
source share
3 answers

Is there a problem when trying to create it or what?

Please, not that your version is a bit outdated.

  • Make sure it is always in the same directory as before.

  • I restarted my computer and try again.

  • , (7.2.1) , NetBeans.

+1

(NetBeans 8.1 Windows 7 x64) java (C:\Users\_my_user_name_\AppData\Roaming\NetBeans\8.1\config\Templates\Classes\Main.java). , ; , . , .

, :
1. , , . , IDE , , , " ..".
2. (, C:\My_Amazing_NetBeans_Projects\MyNiftyJavaApp\src\myniftyjavaapp\MyNiftyJavaApp.java)
3. , ( 0 ), , - IDE ( - ).

, , IDE . , NetBeans. , , , ...

+1
<#if package?? && package != ""> 
package ${package}; 
</#if> 

/** @author ${user}  */

public class ${name} { 

    public static void main(String[] args) { 

    } 
}

, . JAVA MAIN CLASS , . , " ".

When I tried to create the next project, I got an error in the project folder that already exists. I uninstalled / installed NetBeans 8.2, changed the template again in the same way, and again the second project was unable to create.

Then I decided to change the pattern line by line to find out what was going on, and guess what: the first three lines were needed - new projects were created well, and the package was no longer the default!

0
source

All Articles