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.
I installed java7 and ApacheTomcat7 in my Ubuntu12.04, and download eclipse EE. And now
Share
1. Download the package “
apache-tomcat-7.0.6.tar.gz” from the below linkhttp://tomcat.apache.org/download-70.cgi [tar.gz]
2. Now unpack it with the following command:
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:4. Now define the environment variables
JAVA_HOMEandJRE_HOME. This file is in the “environment” in / etc. Command to edit the file:5. Here we record the routes where we have installed Java in my case this is as follows:
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 intomcat7/bin. To modify this file use the command:Now insert the
JAVA_HOMEandJRE_HOMEafter the first line, so the file is as follows:Now configure Tomcat users, this is done in the file “
tomcat-users.xml” directorytomcat7/conf. Command to edit the file: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: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