If you are getting the following exception:

The reason for this exception is most probably is that you are compiling your application in different JDK version than the version of the JVM you are trying to run your application on.
java.lang.UnsupportedClassVersionError: Bad version number in .class file
Filed under Errors/Exceptions, Java / Java EE, JBoss




Static loading can also be triggered when a class gets loaded by reference of Static field. which can also turns into another NoClassDefFoundErrror if that class is missing.