Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Upgrade to JDK 11. There are a variety of JDK vendors. We test with the Azul Zulu JDK 11. Our only known requirement beyond JDK11 is that tomcat's https should recognize contemporary root certificates.

You have the following options to install JDK 11:

If you wish to

...

If your Linux distribution provides another way to install a JDK, such as through a package manager like yum or apt-get, please consult those steps as they may offer better integration with your base operation system.  The following code is an example of installing JDK using yum, and then extracting its version information:

Code Block
languagebash
themeRDark
$ sudo yum install openjdk
$ java -version

use Azul Zulu JDK 11 follow the Zulu Installation Guide . Otherwise, follow the instructions from your preferred vendor.

No matter which option you choose to install JDK, be sure to edit that your system environment variables to point tomcat environment uses the correct "JAVA_HOME" and "JDKJRE_HOME" to the correct locations.  In bash shell, you can add a file in /etc/profile.d/ to include the following settings (this is just an example; please use your system's own settings)values. Set them in /opt/shrine/tomcat/bin/setenv.sh :

Code Block
languagebash
themeRDark
titlesetenv.sh
...
export JAVA_HOME=/opt/where_your_jdk_lives
export JDKJRE_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export MANPATH=$JAVA_HOME/man:$MANPATH... 


Additionally, you should make sure to upgrade your JDBC driver.  You will need to use an appropriate driver and url for your database. The driver must support JDK 11 and later. 

Place the driver in /opt/shrine/tomcat/lib and remove any prior versions of the driver before restarting SHRINE.

Note: The java.endorsed.dirs (Endorsed Directories) system property is not supported JDK 11. You may need to remove this property from the Tomcat startup scripts (catalina.sh) if this is enabled.