Producing executable jar in NetBeans

前端 未结 17 1520
感动是毒
感动是毒 2020-11-30 08:55

I\'m using NetBeans 6.5 and for some reason it won\'t produce executable jar \"out of the box\".

I set my project to be the main project, defined main class in the p

17条回答
  •  迷失自我
    2020-11-30 09:23

    Another approach entirely is to develop, run unit tests, etc. in NetBeans but then use a maven or ant script to do your "real" build. It seems like these kinds of build tools give you more control over how things are built, and it also lets you automate builds.

    For maven, you can add entries to the manifest easily using the maven jar plugin:

    http://maven.apache.org/plugins/maven-jar-plugin/

提交回复
热议问题