user3526665
user3526665

Reputation: 101

How to set JAVA_HOME and JRE_HOME variable for open JDK11

I am trying to deploy the web application using tomcat 9.0. I am getting below error:

 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

after executing .\catalina.bat run command

Upvotes: 5

Views: 16305

Answers (1)

Ali
Ali

Reputation: 172

Tomcat needs the JAVA_HOME and JRE_HOME environment variables. You need to setup your JAVA_HOME and JRE_HOME environment variables as shown step by step in the link below:

For Windows: https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/

For Ubuntu: https://www.mkyong.com/java/how-to-install-java-jdk-on-ubuntu-linux/

I hope this solves your problem.

Upvotes: 3

Related Questions