title: Tomcat - Failed to start component when versions don't conflict
body: <p>I'm trying to work with servlets, so I created a Java EE project on a Tomcat server. As you can see below, I have an environment variable <code>JAVA_HOME</code>, which holds the path to JDK 10. The Java version also defaults to 10, however when I start my Tomcat server, I get the highlighted error.</p>
  <p><a href="https://i.stack.imgur.com/bbwE0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bbwE0.png" alt="enter image description here" /></a></p>
  <p>The problem arose after I created a servlet and tried to map it like in the screenshot below.</p>
  <p><a href="https://i.stack.imgur.com/JScLL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JScLL.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/CjMSj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CjMSj.png" alt="enter image description here" /></a></p>
  <p>In my project I also use the 10th version of Java. I don't quite get what the problem is here, so any hint would help.</p>
  <p><strong>P.S.:</strong> similar questions like <a href="https://stackoverflow.com/questions/14750747/org-apache-catalina-lifecycleexception-failed-to-start-component-standardengin">this one</a> did not solve my problem</p>