I am getting the following error while trying to run the standalone.bat of jboss-as-7.1.1.
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (org/jboss/modules/Main) bad major version at offset=6
JBoss 5.1.0 GA works just fine on the same Windows box.
Could anyone tell me how to resolve the same?