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

Jenkins requires Java5 or later, but you are running 1.5.0_07-b03

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Trivial
    • Resolution: Duplicate
    • core
    • Jenkins ver. 1.610
      Windows XP SP3

    Description

      I think the summary is pretty much self explaining: I always expected Java 1.5 to be Java5. Am I wrong?

      Message should be a little more precise ...

      Jenkins requires Java5 or later, but you are running 1.5.0_07-b03 from C:\Progra
      mme\Java\jre1.5.0_07
      java.lang.UnsupportedClassVersionError: Bad version number in .class file
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.getMethod0(Unknown Source)
      at java.lang.Class.getMethod(Unknown Source)
      at Main._main(Main.java:202)
      at Main.main(Main.java:98)

      Thanks,

      Flo

      Attachments

        Issue Links

          Activity

            danielbeck Daniel Beck added a comment -

            Jenkins has required Java 6 for a long time, and recently moved to requiring Java 7.

            I'll try to find the source of that message and update it.

            danielbeck Daniel Beck added a comment - Jenkins has required Java 6 for a long time, and recently moved to requiring Java 7. I'll try to find the source of that message and update it.
            danielbeck Daniel Beck added a comment -

            Where and when exactly does that message appear?

            danielbeck Daniel Beck added a comment - Where and when exactly does that message appear?
            flominator Flominator added a comment -

            Message appears in console window after starting Jenkins from this batch file:

            @echo off
            call batch\backup_config.bat

            C:
            cd %ProgramFiles%
            cd Java

            echo Scanning for java runtime environment
            FOR /F "delims=#" %%f IN ('dir /s /b /on java.exe') DO (
            SET javapath=%%f
            )

            IF "%javapath%"=="" (echo no java runtime environment found
            pause
            exit 1)

            echo JRE found at %javapath% - now starting Jenkins
            echo on
            %javapath% -Djavax.net.ssl.trustStore=X:\hudstore -Djavax.net.ssl.trustStorePassword=123456 -jar x:\jenkins.war
            rem 2> c:\log_%COMPUTERNAME%.txt
            pause
            exit

            flominator Flominator added a comment - Message appears in console window after starting Jenkins from this batch file: @echo off call batch\backup_config.bat C: cd %ProgramFiles% cd Java echo Scanning for java runtime environment FOR /F "delims=#" %%f IN ('dir /s /b /on java.exe') DO ( SET javapath=%%f ) IF "%javapath%"=="" (echo no java runtime environment found pause exit 1) echo JRE found at %javapath% - now starting Jenkins echo on %javapath% -Djavax.net.ssl.trustStore=X:\hudstore -Djavax.net.ssl.trustStorePassword=123456 -jar x:\jenkins.war rem 2> c:\log_%COMPUTERNAME%.txt pause exit
            danielbeck Daniel Beck added a comment -

            Fixed a few days ago in https://github.com/jenkinsci/extras-executable-war/commit/9850770999541aff2e44e5695737a452892666d1, so resolving as duplicate of the issue mentioned there: JENKINS-28120

            danielbeck Daniel Beck added a comment - Fixed a few days ago in https://github.com/jenkinsci/extras-executable-war/commit/9850770999541aff2e44e5695737a452892666d1 , so resolving as duplicate of the issue mentioned there: JENKINS-28120

            People

              danielbeck Daniel Beck
              flominator Flominator
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: