How to make Java application standalone?

后端 未结 6 835
长发绾君心
长发绾君心 2021-02-06 11:26

I have to burn a Java application on a CD. This application have to run on every Windows PC wihtout any installation (also JRE shouldn\'t be installed) before.

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 11:50

    The easiest way would be to include an unpacked Java installation on the CD and use it to run the application.

    There are AFAIK only 2 "Java to exe" compilers still on the market, one of which (Excelsior JET) is quite expensive, and the other (GCJ) doesn't work on Programs that use AWT or Swing.

提交回复
热议问题