Run tomcat shell script on java8

I get an error when launching tomcat and deploying knowledge.war.

Looking at tomcat's catalina.yyyy-mm-dd.log


19-Jan-2017 15: 41: 20.568 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre


It seemed that jdk1.7 was being used. It seems that the originally installed java7 is in the way and is not recognized. Therefore

Add the following to the beginning of /opt/apache-tomcat*/bin/startup.sh and catalina.sh.

JAVA_HOME=/usr/java/jdk1.8.0_73
PATH=$JAVA_HOME/bin:$PATH

19-Jan-2017 17: 03: 30.561 Info [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/java/jdk1.8.0_73/jre


Now java8 is recognized successfully.

Recommended Posts

Run tomcat shell script on java8
Run PostgreSQL on Java
Run java applet on ubuntu
Run Java EE applications on CICS
Deploy Java Servlet app locally on Tomcat
Script Java code
JSP on tomcat
Run JSP Hello World with Tomcat on Docker
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
Compile and run Java on the command line
Run Mecab on Win10 + Eclipse + Java + cmecab-java (January 2020)
Let's touch on Java
Run STS4 on Mac
Install Java on Mac
Tomcat v8 on CentOS7
Test run on rails
How to run Java EE Tutial on github on Eclipse
Run kuromoji on Win10 + Eclipse + Java environment (January 2020 version)
1002 error on tomcat + webSocket
Run Processing on Ant
Run tiscamera on Ubuntu 18.04
Run phpunit on Docker
Run R from a tomcat-powered Java process on Amazon Linux
1. Quickly run Java web modules on Google Kubernetes Engine (GKE)
Java version control on macOS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Run batch with docker-compose with Java batch
Run VS Code on Docker
Downgrade Java on openSUSE Linux
Reflection on Java string manipulation
On passing Java Gold SE 8
Run openvpn on Docker (windows)
Oracle Java 8 on Docker Ubuntu
Install tomcat on Sakura's VPS
Install Java on WSL Ubuntu 18.04
Shell to kill Java process
java hello world, compile, run
Run chromium-mir-kiosk on Ubuntu Core
Put Oracle Java 8 on CircleCI 2
Suddenly tomcat run stopped working
Java version change on CentOS
Run Eclipse CDT on Ubuntu
Install tomcat + eclipse on mac
Run mruby / c on PSoC 5
Run Java VM with WebAssembly
Install java 1.8.0 on Amazon linux2
Comparison of processing times based on awk, shell command, and Java