Versions Compared

Key

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

...

Running Tomcat with libtcnative

Tomcat (really Java) needs to know where to find these native libraries. We do that by setting the java.library.path environment variable for the JVM during startup. The easiest way to do this is by setting CATALINA_OPTS on startup. This can be done by adding this line to bin/setenv.sh:

export CATALINA_OPTS="-Djava.library.path=$CATALINA_HOME/bin"

Then you can startup Tomcat as usual, either:

$ bin/startup.sh

or

$ bin/catalina.sh start