Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:34:47+00:00 2026-05-25T00:34:47+00:00

How do you install native library for Tomcat 7.0 under Linux system such as

  • 0

How do you install native library for Tomcat 7.0 under Linux system such as CentOS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:34:47+00:00Added an answer on May 25, 2026 at 12:34 am

    Installer

    wget ftp:\\yourdeployment.server.local/tomcat7.tar.gz  
    tar xvzf tomcat7.tar.gz   
    cp -f tomcat /usr/share/tomcat7 
    rm -f /usr/share/tomcat  
    ln -s /usr/share/tomcat7 /usr/share/tomcat    
    chmod 777 /usr/share/tomcat7/bin/ *.sh    
    useradd -d /usr/share/tomcat -s /sbin/nologin tomcat  
    chown -R tomcat /usr/share/tomcat7    
    rm -f /etc/init.d/tomcat  
    cp -f /usr/share/tomcat7/tomcat /etc/init.d/  
    chmod +x /etc/init.d/tomcat    
    rm -f /etc/profile.d/env.sh  
    cp -f /usr/share/tomcat7/env.sh /etc/profile.d/  
    chmod +x /etc/profile.d/env.sh    
    chmod 755 /etc/init.d/tomcat    
    

    Native package installation

    cd /usr/share/tomcat7/bin  
    tar -xvzf tomcat-native.tar.gz  
    cd tomcat-native-<replace with current version>-src/jni/native  
    ./configure --with-apr=/usr && make && sudo make install  
    cd /usr/lib  
    rm -f libtcnative-1.so  
    ln -s /usr/local/apr/lib/libtcnative-1.so libtcnative-1.so  
    init 6  
    

    tomcat file:

    #!/bin/bash  
     chkconfig: 234 20 80  
     description: Tomcat Server basic start/shutdown script  
     processname: tomcat  
    
    export JAVA_HOME=/jdk7  
    export TOMCAT_HOME=/usr/share/tomcat7  
    export JEE_JAR=/jdk7  
    export JRE_HOME=/jdk7/jre  
    export PATH=$PATH:$JAVA_HOME/bin  
    export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar  
    
    case $1 in  
    start)  
      sh /usr/share/tomcat7/bin/startup.sh  
    ;;
    stop)
      sh /usr/share/tomcat7/bin/shutdown.sh
    ;;  
    restart)  
      sh /usr/share/tomcat7/bin/shutdown.sh  
      sh /usr/share/tomcat7/bin/startup.sh  
    ;;  
    esac  
    exit 0  
    

    env.sh

    export JAVA_HOME=/jdk7  
    export JRE_HOME=$JAVA_HOME  
    export TOMCAT_HOME=/usr/share/tomcat7  
    export PATH=$PATH:$JAVA_HOME/bin  
    export CLASSPATH=.:$JRE_HOME/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

AssemblyInstaller.Install expects a System.Collections.IDictionary. Am I right to be 'allergic' to using non-generic collections
I have been trying to install tomcat-6.0.26 on my Mac OS 10.6. I followed
I'm trying to install the mysql gem under Windows 7 x64. Ruby -v is
I am trying to install newgem on my linux box (sudo gem install newgem)
I need to integrate a native C++ library into a C# project. Now in
sudo env ARCHFLAGS=-arch x86_64 gem install do_sqlite3 Building native extensions. This could take a
When developing and deploying native Windows applications, I often need to install a runtime
What install tool can I use to create Virtual Directory on IIS? OpenSource, free
The install instructions are: $ python setup.py build $ sudo python setup.py install #
On install I copy some files in 'System32' folder. When uninstalling these files are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.