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

Jenkins JIRA | Mike Holland | 6 years ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Jenkins fail to start with an Exception due to JDK1.5 incompatibility : java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at Method) at at winstone.classLoader.WebappClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClassInternal( at<init>( at<clinit>( at<init>( at<clinit>( at jenkins.model.Jenkins.<clinit>( at hudson.WebAppMain.installLogger( at hudson.WebAppMain.contextInitialized( at winstone.WebAppConfiguration.<init>( at winstone.HostConfiguration.initWebApp( at winstone.HostConfiguration.<init>( at winstone.HostGroup.initHost( at winstone.HostGroup.<init>( at winstone.Launcher.<init>( at winstone.Launcher.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at Main._main( at Main.main( It seems to come from usage of the last Guava release version that doesn't support JDK1.5 ( Change that seems to be reponsible from this error :

    Jenkins JIRA | 5 years ago | Ludovic Meurillon
    java.lang.UnsupportedClassVersionError: Bad version number in .class file

  1. rafael 2 times, last 3 months ago
  2. andyglick 3 times, last 4 months ago
34 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    Bad version number in .class file

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(
    7. Method)
    8 frames
  3. winstone.classLoader
    1. winstone.classLoader.WebappClassLoader.loadClass(
    1 frame
  4. Java RT
    1. java.lang.ClassLoader.loadClass(
    2. java.lang.ClassLoader.loadClassInternal(
    2 frames
  5. Hudson
    1. hudson.DNSMultiCast.<init>(
    2. hudson.model.Hudson.<init>(
    3. hudson.model.Hudson.<init>(
    4. hudson.WebAppMain$
    4 frames