When trying to open a new project from existing sources (the same files). most of the time we get “Sources directory is already netbeans project (maybe only in memory).” erro. Now i will explain the solution for this error.
Step 1: Go to the folder containing your project
Step 2: Delete the folder named nbproject
Step 3: Restart Netbeans
Step 1: Try creating your project again from the original folder.
Thats all…