如何配置捆绑软件的JRE安装目录(在MacOS上) [英] How to configure the bundles JRE installation directory (on MacOS)

查看:155
本文介绍了如何配置捆绑软件的JRE安装目录(在MacOS上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

install4j可以轻松地将JRE与应用程序捆绑在一起.在Windows(和Linux)上,JRE安装在(应用程序的)子目录jre中.在MacOS上,它似乎位于.install4j/jre.bundle

install4j can easily bundle a JRE with the application. On Windows (and linux) the JRE is installed in a sub-directory jre (of the application). On MacOS it seems to be in .install4j/jre.bundle

如何配置install4j以将JRE放入jre目录?它似乎是所有RCP基本应用程序的默认位置.如果该目录可以用于捆绑的JRE,那就太好了.

How to configure install4j to place the JRE into a jre directory? It seems to be the default location for any RCP base application. Would be nice if that directory could be used for the bundled JRE.

推荐答案

JRE软件包的位置当前无法调整.但是,可以在运行安装文件"操作后,使用移动文件和目录"操作将JRE移动到其他位置.在这种情况下,您必须致电

The location of the JRE bundle is currently not adjustable. However, you can use a "Move files and directories" action to move the JRE to a different location after the "Install files" action has run. In that case you have to call

String newJreHome = ...;
JVMSelector.setPreferredJVM(newJreHome);

,以便启动器和卸载程序将从新位置使用JRE.

so that the launcher and the uninstaller will use the JRE from the new location.

这篇关于如何配置捆绑软件的JRE安装目录(在MacOS上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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