Friday, June 1, 2012

Getting Tomcat to Use Specific JDK

In certain situations, you'd want to use a different JDK for Tomcat than the one installed by default. E.g. in Amazon Linux where it's messy to uninstall OpenJDK due to dependencies from the Amazon tools.

To use a different SDK, first install it, then in Tomcat, add a line to setclasspath.sh

export JAVA_HOME="/opt/java/jdk"

This can be added right at the top of the file.

No comments:

Post a Comment