Code Robo
Java Code Complience
Virtual Service
How To Install Java and Tomcat in Linux.
       Talk to EasyAssistant

This page demonstrate How To Install Java and Tomcat in Linux..

Installation of Java and Tomcat is a very common requirement for any open source platform.
Create required folder/director in linux:
  1. create /opt/java folder/directory
  2. create /opt/tomcat folder/directory

Download Required Softwares:
Download following softwares from internet and upload in linux box in /opt/java and /opt/tomcat foder . Or directly download in linux folder using 'wget' command
wget --no-cookies --no-check-certificate --header "Cookie:; oraclelicense=accept-securebackup-cookie" ""
Example: wget
Note: If wget is not installed. Install it using yum utility. (e.g. yum install wget)
  1. Download Java 8 (jdk-8u301-linux-x64.tar.gz) from internet
  2. Download Tomcat 9 from
Install Java in /opt/java folder: Use folling command:
tar xzf jdk-8u201-linux-x64.tar.gz
Install Tomcat in /opt/tomcat folder:
Use folling command:
tar xzf apache-tomcat-9.0.56.tar.
Use following command to set JAVA_HOME
export JAVA_HOME="/opt/java/jdk1.8.0_301"
  1. setup JAVA_HOME in /opt/tomcat/apache-tomcat-9.0.56/bin/ file
  2. setup JAVA_HOME in /opt/tomcat/apache-tomcat-9.0.56/bin/ file

Start Tomcat:
Check Log:
Check log in /opt/tomcat/apache-tomcat-9.0.56/logs folder to check whether tomcat started successfully or not. Open Tomcat Console:
Use following URL: http:// :8080
Shutdown Tomcat:
Note: Here just one example has been given. You should make the changes based on your requirement .

Post Your Comment:
Name :
Email ( Optional) :
Comments / Suggestion (* Required) It is required: :