Code Robo
Virtual Service
Comparator
Tester
Converter
Utility
Java Code Complience
Validator
Formatter
EncoderDecoder



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: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz"
Example: wget http://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.14/bin/apache-tomcat-9.0.14.tar.gz
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 https://tomcat.apache.org/download-90.cgi
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.
Setup JAVA_HOME:
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/startup.sh file
  2. setup JAVA_HOME in /opt/tomcat/apache-tomcat-9.0.56/bin/shutdown.sh file

Start Tomcat:
/opt/tomcat/apache-tomcat-9.0.56/bin/startup.sh
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:
/opt/tomcat/apache-tomcat-9.0.56/bin/shutdown.sh
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: :
: