title: Unsupported major.minor version 52.0 in java
body: <p>I am getting an error while running the Java code.</p>
  
  <p>It is always showing me:</p>
  
  <blockquote>
    <p>Unsupported major.minor version 52.0 in java</p>
  </blockquote>
  
  <p>On my system, the version of Java is Java 7 but by default it is taking the version Java 8.</p>
  
  <p>I don't know why it is taking the Java 8 version because I have Java 7 on my system.</p>
  
  <p>Please help me to getting out of this error.</p>
  
  <p>Thanks in advance.</p>