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 8144441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:22:35+00:00 2026-06-06T13:22:35+00:00

I installed java7 and ApacheTomcat7 in my Ubuntu12.04, and download eclipse EE. And now

  • 0

I installed java7 and ApacheTomcat7 in my Ubuntu12.04, and download eclipse EE. And now I have to configure my eclipse with tomcat. For I want to find the tomcat installation directory. How can I find it. I installed java and tomcat using Ubuntu software centre.

  • 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-06-06T13:22:36+00:00Added an answer on June 6, 2026 at 1:22 pm

    1. Download the package “apache-tomcat-7.0.6.tar.gz” from the below link
    http://tomcat.apache.org/download-70.cgi [tar.gz]

    2. Now unpack it with the following command:

    tar xvzf apache-tomcat-7.0.8.tar.gz
    

    3. Then move to more appropriate directory, in our case in /usr/share/tomcat7, but can be in any directory. We do this with the command:

    sudo mv apache-tomcat-7.0.8/ /usr/share/tomcat7
    

    4. Now define the environment variables JAVA_HOME and JRE_HOME. This file is in the “environment” in / etc. Command to edit the file:

    sudo gedit /etc/environment
    

    5. Here we record the routes where we have installed Java in my case this is as follows:

    JAVA_HOME="/usr/local/jdk1.6.0_23"
    JRE_HOME="/usr/local/jdk1.6.0_23/jre"
    PATH="...(other path):$JAVA_HOME:$JRE_HOME"
    

    6. IMPORTANT: Verify the routes where they have installed Java.

    sometimes tomcat does not recognize, but a surefire way of recognizing that tomcat is to define the file paths inside “catalina.sh” located in tomcat7/bin. To modify this file use the command:

    sudo gedit /usr/share/tomcat7/bin/catalina.sh
    

    Now insert the JAVA_HOME and JRE_HOME after the first line, so the file is as follows:

    #!/bin/sh
    JAVA_HOME="/usr/local/jdk1.6.0_23"
    JRE_HOME="/usr/local/jdk1.6.0_23/jre"
    # Licensed to the Apache Software Foundation (ASF)...
    #...
    #...
    ....
    

    Now configure Tomcat users, this is done in the file “tomcat-users.xml” directory tomcat7/conf. Command to edit the file:

    sudo gedit /usr/share/tomcat7/conf/tomcat-users.xml
    

    7. Unlike previous versions, the administrator should own role “manager” now it should be “manager-gui“to operate on the web administration tomcat7. The file would be as follows:

    <?xml version='1.0' encoding='utf-8'?>
    
    <tomcat-users>
    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <role rolename="manager"/>
    <role rolename="admin-gui"/>
    <role rolename="admin-script"/>
    <role rolename="admin"/>
    
    <user username="usuario" password="contrasena" roles="manager-gui,admin-gui,manager,admin,manager-script,admin-script"/>
    </tomcat-users>
    

    8. For further info look here
    set-up-eclipse-and-tomcat-7-on-ubuntu-12-04
    cannot-create-a-server-using-the-selected-type-eclipse-tomcat

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I re-installed java in a directory that doesn't have any spaces in it,
I want to start my successfully installed Java program after the installation finished. I
I have installed Eclipse Indigo on Ubuntu 11.10, and the marketplace is not showing
I have installed Eclipse on Debian Lenny after having installed java (apt-get install sun-java6-jre
I have installed java and tomcat appache server on linux. When i am going
I installed java from a binary package (bin format). Now I want to know
hi i have installed the Java eclipse in my system according to the instructions
I am using Eclipse for Java EE. I have installed Java EE SDK that
I have installed the Java plugin for Eclipse Galileo on Windows. However, i don't
I installed/uninstalled java jre/jdk now many times and finally installed the older version 1.6.0_17

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.