Sources folder is already NetBeans project (maybe only in memory)
Solution 1
nbproject
folder is for current NetBeans files, as your recent opened files or any other settings. If you had some important changes in settings in your old nbproject
, and all the files/paths are the same - you can overwrite new with old one, but i believe that's not the case.
Solution 2
You can: in the old nbproject folder, open the private.xml file and deletes the group tag and all its contents. and in private.properties file replaces your current configuration settings. then open the project.xml file replaces your current configuration settings.
rename the new directory generated by NetBeans, and replaces the old directory that you just modified.
this completely worked with me on several occasions
Solution 3
I had similar problem when I moved source files around, etc. How i handled it was: 1) deleted the folder 'nbproject' from within my project source folder structure. 2) Went into NetBeans and Re-created the same project. Cheers.
Luthando Ntsekwa
Loading...Please wait profile for Luthando Loot at Stack Overflow, Q&A for professional and enthusiast programmers http://stackoverflow.com/users/flair/4323504.png
Updated on August 21, 2022Comments
-
Luthando Ntsekwa over 1 year
I am trying to create a php application with existing source in NetBeans. So I opened my NetBeans > File > New Project > PHP Application with existing source, After clicking NEXT it went to 'Name and Location' page. after browsing my source folder I get this error
Sources folder is already NetBeans project (maybe only in memory).
I went to my source folder and removed 'nbproject' folder. After that I was able to create project successfully. After that I noticed NetBeans generated new 'nbproject' folder.
Should I replace the new 'nbproject' folder created by NetBeans with my old 'nbproject' folder?