I set my JAVA_HOME variable the follow path: /usr/lib/jvm/jdk11 and when i put the following comand: java -version , it shows me the current version and echo $JAVA_HOME indicates the above path. When I start tomcat the following error message comes up: neither JAVA_HOME nor JRE_HOME variable defined.
I setting up everything right, but the tomcat cant find it.