我是java初学者。我已经使用 java swing 完成了一个应用程序。现在我想对该应用程序进行设置或安装。
我一直在尝试 install4j
将 .jar
转换为 .exe
文件并使用 "inno setup compiler"
进行安装和它运行成功。但问题是,此设置在未安装 java 的计算机上运行,但应用程序未运行,并会因未安装 java 运行时环境而生成错误。
如何在我的系统用户的计算机上使用我的应用程序安装 java
最佳答案
在 install4j
中,您需要将安装程序配置为静态 bundle 或动态 bundle 。静态 bundle 将随安装程序一起提供 JRE,动态 bundle 将在安装时下载 JRE。
来自help page :
Static bundle
The selected JRE will be distributed in your media file.
Dynamic bundle
A dynamic bundle is downloaded on demand. If the user already has a suitable JRE installed, that JRE will be used. If there is no such JRE available on the target machine, the installer will download the dynamically bundled JRE from the URL that you specify in the text fields below.
关于inno-setup - 如何将 java 设置与我的应用程序设置绑定(bind)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23099906/