Page History
...
No matter which option you choose to install JDK, be sure that your tomcat environment uses the correct "JAVA_HOME" and "JDKJRE_HOME" values. If you are using 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):
Code Block | ||||
---|---|---|---|---|
| ||||
export JAVA_HOME=/opt/where_your_jdk_lives
export JDK_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export MANPATH=$JAVA_HOME/man:$MANPATH |
Another option is to set JAVA_HOME and JRE_HOME Set them in /opt/shrine/tomcat/bin/setenv.sh :...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... export JAVA_HOME=/opt/where_your_jdk_lives export JRE_HOME=$JAVA_HOME ... |
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 should must support JDK 11 and later. We have had success with ojdbc8.jar (version 19.7.0.0) running with SHRINE 3.0.0-PR1, and it can be downloaded from https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/19.7.0.0/.
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.