Java packaging tools - alternatives for jsmooth, launch4j, onejar

前端 未结 9 1435
慢半拍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:16

    Launch4j has just been updated ! http://launch4j.sourceforge.net/changelog.html

    0 讨论(0)
  • 2020-12-08 01:16

    Did you check IzPack? This is a great piece of software to create cross-platform installers:

    IzPack is an installers generator for the Java platform. It produces lightweight installers that can be run on any operating system where a Java virtual machine is available. Depending on the operating system, it can be launched by a double-click or a simple 'java -jar installer.jar' on a shell. The most common use is to distribute applications for the Java platform, but you can also use it for other kinds of projects. The main benefit of IzPack is that it provides a clean and unique way of distributing a project to users using different operating systems.

    Some really famous companies and projects use it for many years (Sun Microsystems, JBoss/RedHat, the Scala language project, some ObjectWeb/OW2 projects, XWiki and many more). If it's good for them, it should be good for you :)

    0 讨论(0)
  • 2020-12-08 01:19

    If you just want an exe (instead of a full-blown installer) you can make one with NSIS: http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation

    Yes, NSIS is an installer but you can have it just run a jar in the same directory by stripping out all of the installer stuff. Basically it works like launch4j but is a lot more configurable.

    0 讨论(0)
  • 2020-12-08 01:19

    If you are using gradle, there is a plugin that uses launch4j (under the hood) and works great. It doesn't even require you to download or install launch4j, it is totally automated.

    https://github.com/TheBoegl/gradle-launch4j

    0 讨论(0)
  • 2020-12-08 01:24

    As I was fed up with recent security changes in Java Webstart, I created my own tool, JNDT. It's under GPL.

    It goes farther than akauppi's suggestion because it allows to create GNU Linux packages even under Mac and Windows :) I use it to create Mac bundle under GNU Linux too. For the moment, it's just a single Ant library with a few dependencies that allows to create native self-contained application bundles for GNU Linux, Mac OS X and Windows. I use it for my first person shooter and I'm very happy with it. It bundles the JRE but it can use the system JRE if you want.

    P.S: JNDT is able to create a native Windows installer as an executable with NSIS even under GNU Linux.

    I understand that the GPL license discourages some developers to use my tool. In this case, rather use PackR.

    0 讨论(0)
  • 2020-12-08 01:26

    You can try

    http://winrun4j.sourceforge.net/

    Has an exe with 64bit support and is quite easy to configure with an ini file.

    0 讨论(0)
提交回复
热议问题