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

Add flag which allows starting Jenkins with unsupported Java versions

      Attempting to start Jenkins with 'java -jar jenkins.war' produces the following:

      Jenkins requires Java 8, but you are running 10.0.1+10 from /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
      java.lang.UnsupportedClassVersionError: 54.0
          at Main.main(Main.java:128)

      Reverting back to Jenkins 2.89.4 solves the problem of starting with Java 10.0.1. This exception is also thrown with Jenkins 2.119

          [JENKINS-51155] Add flag which allows starting Jenkins with unsupported Java versions

          William Beebe created issue -
          William Beebe made changes -
          Epic Link New: JENKINS-40689 [ 177392 ]
          William Beebe made changes -
          Description Original: Attempting to start Jenkins with 'java -jar jenkins.war' produces the following:

          Jenkins requires Java 8, but you are running 10.0.1+10 from /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
          java.lang.UnsupportedClassVersionError: 54.0
              at Main.main(Main.java:128)

          Reverting back to Jenkins 2.89.4 solves the problem of starting with Java 10.0.1. This exception is also through with Jenkins 2.119
          New: Attempting to start Jenkins with 'java -jar jenkins.war' produces the following:

          Jenkins requires Java 8, but you are running 10.0.1+10 from /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
           java.lang.UnsupportedClassVersionError: 54.0
               at Main.main(Main.java:128)

          Reverting back to Jenkins 2.89.4 solves the problem of starting with Java 10.0.1. This exception is also thrown with Jenkins 2.119

          Oleg Nenashev added a comment -

          Java 10 is not supported. Even if starts up with newer versions, as far as we know it cannot operate reliably. So it was an intentional change in JENKINS-49737 (https://github.com/jenkinsci/extras-executable-war/pull/14) to throw errors about that instead of starting up.

          Do older versions of Jenkins run well for Java 10 in your case?

          Oleg Nenashev added a comment - Java 10 is not supported. Even if starts up with newer versions, as far as we know it cannot operate reliably. So it was an intentional change in JENKINS-49737 ( https://github.com/jenkinsci/extras-executable-war/pull/14 ) to throw errors about that instead of starting up. Do older versions of Jenkins run well for Java 10 in your case?
          Oleg Nenashev made changes -
          Link New: This issue relates to JENKINS-49737 [ JENKINS-49737 ]

          William Beebe added a comment -

          I've barely gotten started, but it would appear to be, yes. This is on Windows 10 and macOS 10.13. I would rather have the ability to start any version of Jenkins, and then clearly document any issues that might arrise, than to have Jenkins just fail to intentionally start. I need to move to Java 11 (via Java 10) and I need to determine what the problems are. A number of open-source stand-alone Java tools have already been rebuilt so that builds can be produced. Jenkins is unique as well as important. I'd like to stay current with Jenkin's releases, rather than have the door slammed in my face, as it were. Now is the time to start the migration to Java 11, which will be released in September, and at which time Java 10 will be retired.

          Please, "fail fast" is not a good option.

          William Beebe added a comment - I've barely gotten started, but it would appear to be, yes. This is on Windows 10 and macOS 10.13. I would rather have the ability to start any version of Jenkins, and then clearly document any issues that might arrise, than to have Jenkins just fail to intentionally start. I need to move to Java 11 (via Java 10) and I need to determine what the problems are. A number of open-source stand-alone Java tools have already been rebuilt so that builds can be produced. Jenkins is unique as well as important. I'd like to stay current with Jenkin's releases, rather than have the door slammed in my face, as it were. Now is the time to start the migration to Java 11, which will be released in September, and at which time Java 10 will be retired. Please, "fail fast" is not a good option.

          Oleg Nenashev added a comment -

          danielbeck what if add an option to disable the Fail fast mode for new Java versions?

          Oleg Nenashev added a comment - danielbeck what if add an option to disable the Fail fast mode for new Java versions?

          William Beebe added a comment -

          That would be excellent. Perhaps something like '--enable-future-java' that would enable execution with versions of Java beyond Java 8. That's just a suggestion.

          William Beebe added a comment - That would be excellent. Perhaps something like '--enable-future-java' that would enable execution with versions of Java beyond Java 8. That's just a suggestion.

          Daniel Beck added a comment -

          There are plenty of known issues across Jenkins that prevent pretty much any use of it, and we haven't been able to address them since Java 9 went GA, so I don't see the point to make that a user option.It's not nearly a "we haven't gotten around to testing it, so we prevent it". We were simply tired of dozens and dozens of reports of people running Jenkins on Java 9 and reporting the same problems over and over.

          Daniel Beck added a comment - There are plenty of known issues across Jenkins that prevent pretty much any use of it, and we haven't been able to address them since Java 9 went GA, so I don't see the point to make that a user option.It's not nearly a "we haven't gotten around to testing it, so we prevent it". We were simply tired of dozens and dozens of reports of people running Jenkins on Java 9 and reporting the same problems over and over.
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

            oleg_nenashev Oleg Nenashev
            wbeebe William Beebe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: