/
How to Run the Security Server Using Java 11?
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
, multiple selections available,
Related content
How to Set Up a Security Server?
How to Set Up a Security Server?
More like this
What Kind of APIs the Security Server Provides?
What Kind of APIs the Security Server Provides?
More like this
What Kind of Keys and Certificates the Security Server Has?
What Kind of Keys and Certificates the Security Server Has?
More like this
2024-02-14
2024-02-14
More like this
Migration Guide from X-Road 6 to X-Road 7
Migration Guide from X-Road 6 to X-Road 7
Read with this
X-Road v7.5.0 Release Notes
X-Road v7.5.0 Release Notes
More like this