java.lang.UnsupportedClassVersionError: Bad version number in .class file

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.

About these ads

1 Comment

Filed under Errors/Exceptions, Java / Java EE, JBoss

One Response to java.lang.UnsupportedClassVersionError: Bad version number in .class file

  1. Anonymous

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s