Java packaging tools - alternatives for jsmooth, launch4j, onejar

前端 未结 9 1541
慢半拍i
慢半拍i 2020-12-08 01:02

I have used these three open source tools for packaging my java apps, but they all look like abandon-ware now. All three are very good pieces of software. What are the optio

9条回答
  •  旧巷少年郎
    2020-12-08 01:27

    Maven 2 provides the ability to create a jar which contains all the dependencies as part of its assembly plugin. This combined with the jar plugin configuration of the manifest file (and specifically setting Main-class to the Class with main) is all you need to do basic packaging.

    To some extent Java web start is now considered the better way to distribute Java applications and Maven 2's assembly capability combined with web start gets you everything you need without going via the exe route.

提交回复
热议问题