Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6612

Bad version number in .class file - Hudson cannot be run on Java 1.5 (JmDNS 3.1.6 probably requires Java 1.6)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      Hello. Upgraded today (1.359) and got "Bad version number in .class file". It's on:

      // DNSMultiCast.(DNSMultiCast.java:24):
      
                  this.jmdns = JmDNS.create();
      

      Probably jmdns requires Java 1.6 and so Hudson cannot be run on Java 1.5.

      java.lang.UnsupportedClassVersionError: Bad version number in .class file
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      	at winstone.classLoader.WebappClassLoader.loadClass(WebappClassLoader.java:68)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      	at hudson.DNSMultiCast.(DNSMultiCast.java:24)
      	at hudson.model.Hudson.(Hudson.java:628)
      	at hudson.model.Hudson.(Hudson.java:545)
      	at hudson.WebAppMain$2.run(WebAppMain.java:222)
      

            Unassigned Unassigned
            valgoerad MichaƂ Minicki
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: