Create Windows Installer for Java Programs

2019-01-08 09:42发布

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 .jar for windows. Let's say that I have created a useful application and want to share it with my friends to install it in their PC without they need to know what is JRE, or how to download JRE.

9条回答
叼着烟拽天下
2楼-- · 2019-01-08 10:35

You can use either NSIS or Inno Setup

查看更多
狗以群分
3楼-- · 2019-01-08 10:36

Basically, you have to save your project in jar and then convert to exe, you can use jar4exe or other software. When you have the exe file, use an installer software like Inno Setup Compile or other. After all those stpes Your project will be ready to be install in windows, mac or linux platform. Good Luck.

查看更多
看我几分像从前
4楼-- · 2019-01-08 10:41

Deploy the app. from a web site using Java Web Start. Ensure the user has the minimum Java using deployJava.js (linked from the JWS info page).

查看更多
登录 后发表回答