Compile NetBeans project from command line by using Ant

前端 未结 2 1891
無奈伤痛
無奈伤痛 2021-02-15 11:00

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

2条回答
  •  情书的邮戳
    2021-02-15 11:18

    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?)

提交回复
热议问题