Building Tomcat Native Library

Procedure

  1. Download the tomcat-native.tar.gz archive to a temporary location, such as /home/user/tomnative. The tomcat-native.tar.gz archive is located under CATALINA_HOME/bin.
  2. Navigate to the temporary location directory where the tomcat-native.tar.gz archive is downloaded. For example, navigate to the /home/user/tomnative directory.
  3. Extract the tomcat-native.tar.gz archive in the temporary location, such as /home/user/tomnative directory.
  4. Change to the /home/user/tomnative/tomcat-native-1.1.27-src/jni/native directory.
  5. Execute the following commands at the command prompt in sequence:
    1. ./configure -with-apr=Full_APR_CONFIG_PATH -with-java-home=Full_Path_JDK -with-ssl=yes -prefix=Path_to_destination_directory

      where,

      • Path_to_destination_directory is the destination directory where the libraries are created.
      • Full_APR_CONFIG_PATH is the full path to apr-1-config. For example, ,/usr/bin/apr-1-config.
      • Full_Path_JDK is the full path to JDK. For example, /usr/tools/jdk_1.7.0_45
    2. make
    3. make install
  6. Verify that the Path_to_destination_directory/lib directory contains around five new files with extensions such as .so, .la,.a and so on after the successful installation.