How to Run the Security Server Using Java 11?
Java 11 support in X-Road 6.26 is experimental and not recommended for production environments.
Starting with X-Road 6.26.0, it is possible to run the X-Road Security Server using Java version 11. However, Java 11 support is still experimental and not recommended for production environments.
To install and configure Java 11 on the Security Server version 6.26, please follow the steps below.
Install OpenJDK 11 runtime environment
Ubuntusudo apt installĀ openjdk-11-jre-headless
RHELsudo yum install java-11-openjdk-headless
Modify /etc/xroad/services/local.conf so that JAVA_HOME points to the Java 11 runtime and add a system property to disable a legacy optimization that does not work on Java version 11.
UbuntuJAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 XROAD_PARAMS="$XROAD_PARAMS -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true "
RHELJAVA_HOME=/usr/lib/jvm/jre-11-openjdk XROAD_PARAMS="$XROAD_PARAMS -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true "
Restart X-Road services
sudo systemctl restart "xroad-*"
Related articles