Labs - Apache Tomcat issue. DevOps Pre-Requisite Course

After instalationt Apache Tomcat can not restart tomcat ( can run startup.sh, but can not shutdown.sh)

sudo /opt/apache-tomcat-11/bin/shutdown.sh

Using CATALINA_OPTS:
Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

A link to the lab would be helpful here; I’m not sure where the lab is in this particular course.

This might be related to the version of Java you’re using. I installed java using:

sudo yum install java-17-openjdk-devel

thx Rob, yep it helped, before I just did “sudo yum install java” and it looks as it was old java version