I have a NetBeans project I would like to compile from the command line. There are many other questions on StackOverflow about how to do so, but they explain how to compile the
ant compile
Compiles the project (.class files are placed in the build/classes folder)
ant jar
Compiles the project (see above) and builds a JAR ( located in dist/ )
If that doesn't work for you, check ant
's output for errors. (Is the JAVA_HOME Variable set properly?)
I'm totally agnostic IDE developer. After several frustrating years trying to emerge "netbeans ant config" to something usable from command line I became to create a wrapper for netbeans ant.
https://github.com/albfan/ant-netbeans
By now you can:
$ ant tabtab
JDK_HOME
and most important
all
ant target to complete smoothly, passing test and whatever stuff implied.