Changing NetBeans Source Directory
You can rename projects in Netbeans however, if you keep the NetBeans metadata files separate from your source files, you can not change the source directory from the Netbeans interface.
Luckily the NetBeans project files are simple text files, so we can easily change it there. Close NetBeans (so that you don’t accidentally overwrite the new project file). Find the project directory and open the directory called nbproject. Then open the file project.properties.
Change this:
src.dir=<old path>
To:
src.dir=<new path>
Comments (2)
There is no file called "project.properties". There is a file "project.xml" is this the one? It is not "simple text" though...
No, the file should be called "project.properties", and it should be located in the same directory as the file called "project.xml". I'm using NetBeans 6.9.1.