Did you just created new project and just imported the sources/libs or you
used the nbproject that is found in ide/ directory?

If you created project from scratch make sure you are using the existing
build.xml file (there is an option while creating netbeans project -
Free-form project) and set up the Build and Run properties (under Project
properties) to corresponding ant targets. Build project - make, Clean
project - clean, Run project - run, Test project - test.

But probably better would be to copy content of ide/nbproject to nbproject
folder. Alternatively you can also build it from command line. Just use "ant
make" to build it and "ant run" to run it.

Did you just created new project and just imported the sources/libs or you
used the nbproject that is found in ide/ directory?

If you created project from scratch make sure you are using the existing
build.xml file (there is an option while creating netbeans project -
Free-form project) and set up the Build and Run properties (under Project
properties) to corresponding ant targets. Build project - make, Clean
project - clean, Run project - run, Test project - test.

But probably better would be to copy content of ide/nbproject to nbproject
folder. Alternatively you can also build it from command line. Just use "ant
make" to build it and "ant run" to run it.