为Wildfly 10使用自定义JRE [英] Use custom JRE for Wildfly 10

查看:268
本文介绍了为Wildfly 10使用自定义JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是否可以为具有 standalone.bat -Djava.jre =< path>

对于我的项目,重要的是我无法更改参数JAVA_HOME的值

For my project, it is important that I can't change the value of parameter JAVA_HOME

推荐答案

您可以设置WildFly使用的 JAVA_HOME

You can set the JAVA_HOME used by WildFly.

对于Linux / UNIX,请检查 standalone.conf file:

For Linux/UNIX, check the standalone.conf file:

# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
#JAVA_HOME="/opt/java/jdk"

For Windows,检查 standalone.conf.bat 文件:

For Windows, check the standalone.conf.bat file:

rem #
rem # Specify the location of the Java home directory (it is recommended that
rem # this always be set). If set, then "%JAVA_HOME%\bin\java" will be used as
rem # the Java VM executable; otherwise, "%JAVA%" will be used (see below).
rem #
rem set "JAVA_HOME=C:\opt\jdk1.6.0_23"

只需取消注释设置 JAVA_HOME 变量的行,并使用所需路径更新其值。

Simply uncomment the line that sets the JAVA_HOME variable and update its value with the desired path.

这篇关于为Wildfly 10使用自定义JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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