Producing executable jar in NetBeans

前端 未结 17 1519
感动是毒
感动是毒 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:33

    To manually force package creation with NetBeans IDE 8.0.2 ...

    1. In Project navigator, expand your <project> and right click Project Files / pom.xml
    2. Click Run Maven / Goals
    3. Type "package" in Goals field
    4. Click OK

    The output window will then show (on Mac) ...

    Building jar: /Users//NetBeansProjects//target/-1.0-SNAPSHOT.jar
    

提交回复
热议问题