Blog Archive

bad major version at offset=6 java.lang.UnsupportedClassVersionError

Received the following when deploying my WAR file in Apache Tomcat webapps. Basically its a very easy error to fix. All it means that the java application WAR file is compiled using a Java version not supported by your Web application server.
So now you have 2 choices:

1) Stop your server in my case it was Tomcat and restart it using a higher version of java. But that is not always possible as you may not have control over your Web server.

2) Change your project facet to use a lower compatible version of Java.