Packaging Java apps for the Windows/Linux desktop

后端 未结 18 1887
时光说笑
时光说笑 2020-12-02 06:41

I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on th

相关标签:
18条回答
  • 2020-12-02 07:05

    You may want to try our tool, BitRock InstallBuilder. Although it is a native application, a lot of our customers use it to package desktop Java applications. If you bundle the JRE and create launcher, etc. the user does not even need to know they are installing a Java application. It is cross platform, so you can generate installers for both Windows and Mac (and Linux, Solaris, etc.) Like install4j tool mentioned in another post, it is a commercial tool, but we have free licenses for open source projects and special discounts for microISVs / small business, etc. just drop us an email. Also wanted to emphasize that this is an installer tool, so it will not address your needs if you are looking only for a single file executable.

    0 讨论(0)
  • 2020-12-02 07:06

    Maybe you should take a look at IzPack. I created a very nice installer some years ago and I'd bet that they are still improving it. It allows the installation of docs, binaries and a clickable link to start the application IIRC.

    0 讨论(0)
  • 2020-12-02 07:08

    In my company we use Launch4J to create the exe file, and NSIS to create the installer, with SWT applications.

    We have used it for years in several commercial applications and the pair works fine.

    0 讨论(0)
  • 2020-12-02 07:09

    Consider converting your application to Eclipse RCP. It is written in SWT, and the Eclipse IDE contains packaging tools that generate executables for all major platforms. For windows, it can generate a zip or a folder containing your code. For a common installation experience, I'd using NSIS. There is actually a packages generator project at eclipse to create common installers for all platforms eclipse supports.

    0 讨论(0)
  • 2020-12-02 07:10

    Have you thought about Java Web Start? Here is a tutorial specifically for deploying an SWT application with Java Web Start.

    0 讨论(0)
  • 2020-12-02 07:14

    JSMooth has worked very well for us in a production environment, where I first generated a single jar using one-jar (fat jar plugin to eclipse) and then wrapped it with JSmooth.

    (Please note that I wanted a no-install distribution of a single file, which could promt for installing the JRE if needed).

    It has worked so well that I thought nobody was using it :)

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