Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use custom JRE for Wildfly 10

Can I choose a custom JRE for a Wildfly Application Server with a property like standalone.bat -Djava.jre=<path>

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

like image 718
root404 Avatar asked Sep 13 '16 14:09

root404


People also ask

How to set Java path in WildFly?

On the Advanced tab, click on the Environment Variables button. Then, in the System variables box, click on New. Name the new variable JAVA_HOME , and give a value of the path to your JDK installation; I recommend something like C:\Java\jdk1. 8.0_05 .

Does WildFly support Java 11?

WildFly versions up to 26 should run on the most recent long-term support release (LTS), i.e. on Java 8 and 11. On a balance, due to the amount of tests, it is recommended to use JDK 11. WildFly version 27 drops support for Java 8. So you can mainly choose between Java 11 and Java 17.

What WildFly 10?

WildFly 10 is an exceptionally fast, lightweight and powerful implementation of the Java Enterprise Edition 7 Platform specifications. The state-of-the-art architecture built on the Modular Service Container enables services on-demand when your application requires them.

What is WildFly server used for?

WildFly is a popular choice for users and developers worldwide who develop enterprise-capable applications. WildFly, formerly known as JBoss Application Server, is an open source Java EE application server. Its primary goal is to provide a set of vital tools for enterprise Java applications.


1 Answers

You can set the JAVA_HOME used by WildFly.

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, 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"

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

like image 164
cassiomolin Avatar answered Nov 17 '22 01:11

cassiomolin