Now, let's follow the given steps to run the application on Tomcat:
- First, you need to download the Tomcat from http://tomcat.apache.org/download-80.cgi.
- The downloaded file will be a compressed file, and you can extract it with:
tar xvzf apache-tomcat-8.0.9.tar.gz
- Next, you need to move it from the downloaded folder to the proper location, at:
mv apache-tomcat-8.0.9 /opt/tomcat
- You also need to check whether you have JDK set up on your system. You can do that by typing in the following command:
java -version
- If you see The program 'java' can be found in the following packages:, it means you need to install JDK. You can do it with the following:
sudo apt-get install openjdk-7-jdk
- After that, add the following lines ...