Building Tomcat Native Library
- Procedure
- 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.
- Navigate to the temporary location directory where the
tomcat-native.tar.gz
archive is downloaded. For example, navigate to the /home/user/tomnative directory. - Extract the tomcat-native.tar.gz archive in the temporary location, such as /home/user/tomnative directory.
- Change to the /home/user/tomnative/tomcat-native-1.1.27-src/jni/native directory.
- Execute the following commands at the command prompt in sequence:
- ./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
- make
- make install
- ./configure -with-apr=Full_APR_CONFIG_PATH -with-java-home=Full_Path_JDK -with-ssl=yes -prefix=Path_to_destination_directory
- 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.