简体   繁体   English

Launch4j JRE安装或捆绑

[英]Launch4j JRE Installation or bundled

I'll ship my application as .exe file on a cdrom. 我将我的应用程序作为.exe文件发送到cdrom上。

When the end user gonna start the program, the following events should occurs (in case he hasn't got any valid JRE installation): 当最终用户启动程序时,应发生以下事件(如果他没有安装任何有效的JRE):

  1. If the user hasn't got an internet connection, the program (exe file) should use an embedded JRE (shipped with the cdrom) 如果用户没有连接互联网,程序(exe文件)应使用嵌入式JRE(随cdrom一起提供)

  2. If the user has got an internet connection, he should be redirected to the JRE download location (java.com). 如果用户已连接到互联网,则应将其重定向到JRE下载位置(java.com)。 He should then download the JRE and install it. 然后他应该下载JRE并安装它。 I won't use the bundled JRE for a user with an internet connection. 我不会将捆绑的JRE用于具有Internet连接的用户。

I configured both download path and JRE bundle in Launch4J, but I can't find how i could configure it for my specialities. 我在Launch4J中配置了下载路径和JRE包,但我找不到如何为我的专业配置它。 Anyone got a clue or solution? 任何人都有线索或解决方案?

Thx 谢谢

Refer to file:///C:/Program%20Files/Launch4j/web/docs.html#Configuration_file 参考file:/// C:/Program%20Files/Launch4j/web/docs.html#Configuration_file

Certain conditions must be met as follows: 必须满足以下某些条件:

Using <path> in jre tab: Run if bundled JRE and javaw.exe are present, otherwise stop with error. 在jre选项卡中使用<path>如果存在捆绑的JRE和javaw.exe,则运行,否则停止并显示错误。

Using <path> + <minVersion> [+ <maxVersion>] in jre tab: Use bundled JRE first, if it cannot be located search for Java, if that fails display error message and open the Java download page. 在jre选项卡中使用<path> + <minVersion> [+ <maxVersion>]首先使用捆绑的JRE,如果找不到,则搜索Java,如果失败则显示错误消息并打开Java下载页面。

Using <minVersion> [+ <maxVersion>] in jre tab: Search for Java, if an appropriate version cannot be found display error message and open the Java download page. 在jre选项卡中使用<minVersion> [+ <maxVersion>]搜索Java,如果找不到合适的版本,则显示错误消息并打开Java下载页面。

So, you must meet the second condition... 所以,你必须满足第二个条件......

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

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