How to create an exe file in java

前端 未结 6 1168
轻奢々
轻奢々 2020-12-09 06:58

Hi I want to create an exe file for my java app.

I tried with some third party softwares JEXECreator, successfully created the exe file and its working fine in my sy

相关标签:
6条回答
  • 2020-12-09 07:17

    Can't speak for JEXECreator, but I can recommend JSmooth (http://jsmooth.sourceforge.net/). I've successfully used it for several projects (e.g. this SWT based Java app).

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

    Well I will recommend you to create one bash file instead of doing complex things and by double clicking on it you can run your application.Yeah but you cant change its icon but there are many free tools are available by using which you can easily convert bash file to exe.

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

    Personally, I like JSmooth. That is just wrapping. This means it is still a Java application. When executing the exe, it will unpack the jar to a temporary folder and then execute it with javaw -jar ...

    A second option is gcj. But that is absolutely a bad choice. That doesn't wrap the jar in an exe, but it really compiles it to native system code. But this slows down your application very much. You can check some results of my timing on this topic.

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

    To create an exe file, I use launch4j. Launch4j converts the jar file into exe file and if I wanna pack it for the installer, I use InnoSetup. For me, that exe created by launch4j works on pcs.

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

    I use the Ant tool under Eclipse IDE to work with InnoSetup and Launch4J to create the EXE and its installer which it also manages the classpath...

    A guide? You can refer to:

    http://www.eteks.com/tips/tipCreationExe.html (in French)

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

    I had some positive experience with Excelsior JET. Unlike gcj it actually works and execution times are faster than that of an executed .jar file. The downside is that it's not for free.

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