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

Solution Verified - Updated -

Issue

  • Failure to start JBoss

  • Seeing various errors of inability to open files in conf/bootstrap and "bad version in .class file":

java.lang.UnsupportedClassVersionError: Bad version number in .class file
- When I startup EAP 5.1 for the first time I get the below error. The JDK is 64 bit :

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        .....
       .....

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.x
  • Red Hat JBoss Service Oriented Architecture Platform (SOA) 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content