31July

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>

Posted in Tutorials

Comments (2)

  • OppfinnarJocke
    29 August 2011 at 13:53 |

    There is no file called "project.properties". There is a file "project.xml" is this the one? It is not "simple text" though...

    • Dave Horsfall
      29 August 2011 at 19:19 |

      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.

Leave a comment

You are commenting as guest.

Cancel Submitting comment...

About Dave Horsfall

Dave Horsfall is a British software developer and founder of the hwdMediaShare project. More...

Recent Comments

  • Ppl like you get all the brains. I just get to say thanks for he awnesr.

    Rosa, 06. September, 2011 |

  • Ppl like you get all the brains. I just get to say thanks for he awnesr.

    Rosa, 06. September, 2011 |

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

    Dave Horsfall, 29. August, 2011 |

  • There is no file called "project.properties". There is a file "project.xml" is this the one? It is not "simple text" though...

    OppfinnarJocke, 29. August, 2011 |