Create Windows Installer for Java Programs

前端 未结 9 1381
你的背包
你的背包 2020-12-01 00:24

I\'m a Java beginner.

I already created a simple GUI application that display will \"hello world\" label.

But, how can I create an installer from .java or .j

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 00:39

    You can use WiX to create Windows Installer package. The package will include the JRE binaries and your compiled application (jar file). Upon installation, the installer unpacks your files to user's computer, creates shortcut that starts your application (app-path\jre\bin\javaw.exe -jar app-path\your-app.jar).

    See notes on Redistributing the JRE and in README.

提交回复
热议问题