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

Windows Installers (and other) with Embedded Java should use Java 8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: packaging
    • Labels:
      None
    • Similar Issues:

      Description

      Follow-up to JENKINS-43492

      We need to ensure that all packages ship Java 8 if they do embed it. From what I see, at least some tests (e.g. openSuse) run with Java 7 and hence will probably become unstable. Windows installer definitely bundles Java, we need to ensure the version is correct (Java 8 latest, 32 bit)

        Attachments

          Issue Links

            Activity

            Hide
            millda4 Dave Miller added a comment -

            When I try to install the new version 2.55, I get the same 503 "Service Unavailable" error that I received when trying to install version 2.54.  I have to revert back to 2.53 to get Jenkins to work.  The server where Jenkins is installed has Java 8 on it.

             

             

             C:\>java -version
            java version "1.8.0_74"
            Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
            Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

             

            Jenkins was installed by somebody else who is no longer with our company, so I "inherited" the setup.  It was installed as a service that gets automatically started every time that server is rebooted.  From the jenkins.err.log file, I see:

            Caused by: java.lang.UnsupportedClassVersionError: jenkins/util/SystemProperties : Unsupported major.minor version 52.0

            Am I missing something here?  What is going wrong?  I thought version 2.55 was created to solve the problem of Jenkins using its own internal version of Java 7 instead of the server's Java 8 version.

            Show
            millda4 Dave Miller added a comment - When I try to install the new version 2.55, I get the same 503 "Service Unavailable" error that I received when trying to install version 2.54.  I have to revert back to 2.53 to get Jenkins to work.  The server where Jenkins is installed has Java 8 on it.      C:\>java -version java version "1.8.0_74" Java(TM) SE Runtime Environment (build 1.8.0_74-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)   Jenkins was installed by somebody else who is no longer with our company, so I "inherited" the setup.  It was installed as a service that gets automatically started every time that server is rebooted.  From the jenkins.err.log file, I see: Caused by: java.lang.UnsupportedClassVersionError: jenkins/util/SystemProperties : Unsupported major.minor version 52.0 Am I missing something here?  What is going wrong?  I thought version 2.55 was created to solve the problem of Jenkins using its own internal version of Java 7 instead of the server's Java 8 version.
            Hide
            mindeb Mindaugas Batutis added a comment -

            I just had this issue and solved it by:

            1. Creating JAVA_HOME environment variable to point to Java 8 directory, i.e. C:\Program Files (x86)\Java\jre1.8.0_111\bin
            2. Editing C:\Program Files (x86)\Jenkins\jenkins.xml line <executable>...</executable> to <executable>%JAVA_HOME%\java</executable>
            3. Opening command line in C:\Program Files (x86)\Jenkins and running "jenkins stop", "jenkins uninstall", "jenkins install", "jenkins start".

            I also deleted the jre folder from Jenkins directory just to be sure. Hope this helps until the above issue is resolved.

            Show
            mindeb Mindaugas Batutis added a comment - I just had this issue and solved it by: Creating JAVA_HOME environment variable to point to Java 8 directory, i.e. C:\Program Files (x86)\Java\jre1.8.0_111\bin Editing C:\Program Files (x86)\Jenkins\jenkins.xml line <executable>...</executable> to <executable>%JAVA_HOME%\java</executable> Opening command line in C:\Program Files (x86)\Jenkins and running "jenkins stop", "jenkins uninstall", "jenkins install", "jenkins start". I also deleted the jre folder from Jenkins directory just to be sure. Hope this helps until the above issue is resolved.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Dave Miller Make sure your Jenkins version uses the same JDK. By default the windows installer uses the bundled version. As Mindaugas Batutis mentioned above (bullet #2), you can check it in the Windows Service Wrapper config file (jenkins.xml)

            Show
            oleg_nenashev Oleg Nenashev added a comment - Dave Miller Make sure your Jenkins version uses the same JDK. By default the windows installer uses the bundled version. As Mindaugas Batutis mentioned above (bullet #2), you can check it in the Windows Service Wrapper config file (jenkins.xml)

              People

              • Assignee:
                Unassigned
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: