Netbeans - compile from command line

From Open CSTA

Jump to: navigation, search
  • Go to the project home directory where build.xml exists
  • Remove the dist directory
  • <NETBEANS_INSTALL_DIR>/java2/ant/bin/ant jar

e.g.

/home/cm/netbeans-6.5/java2/ant/bin/ant jar

This will build your project and place it in a newly made dist/ directory. Exactly as if you had pressed the "Clean" "Build" buttons in the Netbeans IDE.


Hope it helps someone!