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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.