title: How to change Java path used by Eclipse?
body: <p>I recently compiled my code using <code>Java 1.8</code>. I had set <code>JAVA_HOME</code> and <code>PATH</code> to do the compilation using <code>ant</code></p>
  
  <p>Now, When I start Eclipse (Luna), in order to debug application using Tomcat plugin for eclipse. I starts using below path - using Java 1.7</p>
  
  <p><a href="https://i.stack.imgur.com/tyfyf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tyfyf.png" alt="enter image description here"></a></p>
  
  <p>And tomcat starts and prints below</p>
  
  <pre><code>Apr 10, 2018 4:25:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            6.3
  Apr 10, 2018 4:25:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          amd64
  Apr 10, 2018 4:25:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JAVA_HOME:             C:\Program Files\Java\jre7
  Apr 10, 2018 4:25:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           1.7.0_79-b15
  </code></pre>
  
  <p><strong>How can I use Java 1.8 in this ?</strong></p>