Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sources directory is already NetBeans project error

Tags:

netbeans

i got that error and i can't add project in netbeans.. please teach me how to fix this

even if i rename my folder it doesn't work...

like image 221
Kevin Lee Avatar asked Mar 25 '11 10:03

Kevin Lee


People also ask

How do I run a directory in NetBeans?

To open a local file/folder (as a file-explorer) in Netbeans, in the top menu-bar goto: Window -> Favourites (or press Ctrl+3), this will open 'Favourites' pane, here you can open files or folders (in Linux, by default you will see your 'home' directory).

Why can't I open my project in NetBeans?

Please follow the below mentioned steps to fix this issue:Delete the folder /java/jdk-13/ Open Netbeans again. Select Yes in the prompt ( To use the newly installed jdk ) Viola you can create new projects and files.


3 Answers

Netbeans tries to add a folder (nbproject) to your project during import. If it is already there NB fails to add it. Move the existing nbproject folder to a different directory outside your project and try to import again.

See this question.

like image 176
Matt Handy Avatar answered Oct 13 '22 23:10

Matt Handy


Delete the nbproject folder in your project directory and restart the IDE.

like image 27
jitu99 Avatar answered Oct 13 '22 22:10

jitu99


I had a PHP project with maven pom.xml, with no nbproject directory and clear cache, and netbeans would refuse to create a new project from sources with that pom.xml in place. Had to remove pom.xml, create a project and put pom.xml back.

like image 40
Denis Kniazhev Avatar answered Oct 13 '22 22:10

Denis Kniazhev