Packaging Java apps for the Windows/Linux desktop

后端 未结 18 1885
时光说笑
时光说笑 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 06:59

    Another option I was considering: rather than writing a native launcher from scratch, Eclipse comes with the source code for its own launcher, and this could perhaps be repurposed for my app.

    It's a shame that Sun never included anything similar in the JDK.

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

    Please try InstallJammer.The best one I have used ever. Free and powerful.And sufficient for personal and commercial use.

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

    Have you considered writing a small program in C/C++ that just calls CreateProcess to start up the java VM with the jar (or class) file?

    You could get Visual C++ Express and put together the startup program pretty easily. This would make it easy to add a friendly icon as well.

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

    I've used the free Launch4J to create a custom launcher for my Java programs on Windows. Combined with the free NSIS Installer you can build a nice package for your Windows users.

    Edit: Did not see that you use SWT. Don't know if it works with SWT as well, because I used only Swing in my apps.

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

    I went through the same and found that all of the free options weren't very good. Looks like you'll be writing your own. I'd be interested to see if someone has a free/cheap option that works

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

    I have used JSmooth in the past, and still have luck with it. The UI is pretty buggy, but I only use that for building the config file once, and then I build from Ant after that.

    What issues are you having with JSmooth?

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