Learn how to solve the problematic issue when trying to open an existent NetBeans project.

How to solve NetBeans project creation issue: Sources folder is already NetBeans project (maybe only in memory)

When you work with PHP in NetBeans, one of the most useful features of this IDE is the implementation of multiple tools like Git, SVN and other features that really boost your productivity when working on this platform. Everything in NetBeans is based on a Project level, where if you want to work on a directory, this directory must be a NetBeans project.

A NetBeans project is defined by the existence of the nbproject directory. In the mentioned directory, NetBeans will find information and preferences that are stored when you work on your project. The issue that we meant to solve in this article, is the famous:

Sources folder is already in NetBeans project (maybe only in memory).

In this article, we'll explain why this happens and how to solve this issue quickly.

Solution

This message appears only when you try to create a new project when the selected directory is already a NetBeans project. So if you don't want to reconfigure it, open the project instead of creating it.

Alternatively, if you still want to create it as a new project, delete the nbproject directory of the folder that you want to work with and restart netbeans (very important, otherwise the project will be kept in memory and the message will appear again). After following those steps, you will be able to create a project normally again.

Happy coding !


Senior Software Engineer at Software Medico. Interested in programming since he was 14 years old, Carlos is a self-taught programmer and founder and author of most of the articles at Our Code World.

Sponsors