title: Java compiler version and java version is different
body: <p>I am trying to run a compiled java class and getting errors but when I checked my java environments it points to different version.</p>
  
  <p>Javac –version gives me 1.8.0</p>
  
  <p>And</p>
  
  <p>Java –version gives me 1.6.2</p>
  
  <p>The Java_home and path is pointing to the 1.8 version.</p>
  
  <p>Please help.</p>