简体   繁体   English

确定是否使用Install4j安装了JRE

[英]Determine whether JRE is installed using Install4j

I have created an installer for my Java app using Install4j. 我已经使用Install4j为Java应用程序创建了一个安装程序。

I want to check whether JRE/JDK is installed on my system or not. 我想检查系统上是否安装了JRE / JDK。 This checking will be performed at the start-up of the installer. 此检查将在安装程序启动时执行。 So how can i do that ? 那我该怎么办呢?

And help will be highly appreciated. 并且帮助将受到高度赞赏。

install4j always checks whether a suitable JRE is available, otherwise it cannot run. install4j始终检查合适的JRE是否可用,否则它将无法运行。 If no suitable JRE is available, an error message will be displayed. 如果没有合适的JRE,将显示错误消息。

If you do not want to statically bundle a JRE into the installer, you can use the "dynamic bundle" option that will download the JRE on demand. 如果您不想将JRE静态捆绑到安装程序中,则可以使用“动态捆绑”选项,该选项将按需下载JRE。 This is configured on the "Bundled JRE" step of the media wizard. 这是在媒体向导的“捆绑JRE”步骤上配置的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM