title: Why am I getting Unsupported major.minor version 52.0?
body: <p>For a databases course I am running apache and getting an error 52 when trying to submit a form.</p>
  
  <p>I have seen that this is from running an old version of java but I have the latest version so I'm pretty stuck.</p>
  
  <p>exception:
  javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/InsertAirline</p>
  
  <p>root cause:
  java.lang.UnsupportedClassVersionError: InsertAirline : Unsupported major.minor version 52.0 (unable to load class InsertAirline)</p>
  
  <p>I'm using the following command to compile:</p>
  
  <p>javac -d ../apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/classes -classpath ../apache-tomcat-6.0.18/lib/servlet-api.jar:ojdbc6.jar *.java</p>
  
  <p>Any ideas?</p>
  
  <p>Is the driver ojdbc6 the problem?</p>
  
  <p>Or could it be an error in my source code (html or java files)?</p>
  
  <p>I have java version "1.8.0_73"</p>
  
  <p>I appreciate any and all help!</p>