My client just sent me the base project for development purposes. I think he just zipped the project folder and sent to me.
Now when I go to NetBeans, "New project with existing sources": First I see the error that "this project already contains build folder". I deleted the build folder from project and then I get the error "this project already contains a netbeans project".
Any idea what I am missing. I am used to Eclipse and new to Netbeans. The project structure sent to me by client is:
You may try creating a new project in netbeans and then copy and and paste the files into it. I usually experience this problem when the project wasn't created in netbeans.
I use Netbeans 7. Choose menu File \ New project, choose Import from existing folder.
From Netbeans 8.1 - there is an "Import from ZIP" option.
Go to Main Menu -> File -> Import Project -> from ZIP.
Browse your .ZIP file's location via Browse button.
If you have Java project depending on external Libraries, Netbeans will highlight & ask for "Resolving problems" in project, click on resolve, provide location in your file system containing required library files .e.g JARs etc & you will be good to go.
Since you already have all the files in a folder, say "Project", you simply have to open Netbeans and go to
File -> Open Project
(or Ctrl + Shift+ O
on Windows) and then from the dialog box navigate to the folder containing the Folder "Project".
You will see in the dialog box of Netbeans a 'Java cup'. Well, that's your project.
Follow these steps:
If you don't have the source folder added do the following
Now you can have fun and run the application.
If there is already a nbproject folder it means you can open it straight ahead without importing it as a project with existing sources (ctrl+shift+o) or (cmd+shift+o)
Source: Stackoverflow.com