我可以为具有类似属性的Wildfly应用程序服务器选择自定义JRE standalone.bat -Djava.jre=<path>
对于我的项目,重要的是我不能更改参数JAVA_HOME的值
您可以设置JAVA_HOMEWildFly使用的.
对于Linux/UNIX,请检查standalone.conf文件:
# 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"
Run Code Online (Sandbox Code Playgroud)
对于Windows,请检查standalone.conf.bat文件:
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"
Run Code Online (Sandbox Code Playgroud)
只需取消注释设置JAVA_HOME变量并使用所需路径更新其值的行.
| 归档时间: |
|
| 查看次数: |
6272 次 |
| 最近记录: |