为 Java 程序创建 Windows 安装程序 [英] Create Windows Installer for Java Programs

查看:30
本文介绍了为 Java 程序创建 Windows 安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Java 初学者.

I'm a Java beginner.

我已经创建了一个简单的 GUI 应用程序,它会显示hello world"标签.

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

但是,我如何从 .java 或 .jar 为 windows 创建安装程序.假设我创建了一个有用的应用程序并想与我的朋友分享无需知道什么是 JRE 或如何下载 JRE,即可将其安装到他们的 PC 中.

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.

推荐答案

部署应用.来自使用 Java Web Start 的网站.使用 deployJava.js(从 JWS 信息页面链接)确保用户具有最低限度的 Java.

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).

这篇关于为 Java 程序创建 Windows 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆