When deploying a new test-version of a war-file to tomcat, I get a java version error.
A servlet, that I compiled last year is executed fine, another servlet, that I compiled recently, displays (both servlets within the same war-file):
Unsupported major.minor version 52.0 (unable to load class
"java -version" displays "OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3) OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)" on labs
but "Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)" on the computer I compiled the servlet on.
It looks to me as if either JRE/JVM, or Tomcat, or servlet.jar needs to be updated?