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

JDK installation influences already installed java instances, reinstall of Java had to be done to get back up and running

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • 1.398

      We have migrated from Hudson to Jenkins. We decided to create a new buildmaster, since we also faced some issue with the old master.
      On the new master we defined only 1 JDK.
      All builds try to install the new JDK (1.6.23) and on a number of systems (windows) this gave an issue.

      The JDK gets installed in ../tools/1.6.23, but the public JRE get installed in C:\Program Files\Java\jre6
      That influences already installed Java installation(s).
      On a number of machine we had to remove all Java installation and do a manual installation again to get it back up and running.

      For windows the public JRE has to be skipped I think.
      That can be done with the following command: ADDLOCAL="ToolsFeature,DemosFeature,SourceFeature"
      Or the install directory of the public JRE has to be defined as well: /INSTALLDIRPUBJRE=...
      That is not done right now.

      More info: http://www.oracle.com/technetwork/java/javase/install-windows-189425.html

      This issue is very frustrating and causing a lot of issue and loss of time.

          [JENKINS-8957] JDK installation influences already installed java instances, reinstall of Java had to be done to get back up and running

          Cees Bos created issue -

          Why does it cause a problem to install a JDK? Is the issue that the JRE should be installed in a subdirectory named 'jre' under the JDK installation directory?

          Kohsuke Kawaguchi added a comment - Why does it cause a problem to install a JDK? Is the issue that the JRE should be installed in a subdirectory named 'jre' under the JDK installation directory?

          Cees Bos added a comment -

          Once you download and install a JDK from Sun/Oracle it does install the JDK and it installs a jre folder inside the JDK directory AND it installs a public JRE. By default that is C:\Program Files\Java\jre6. This only occurs on windows, on linux only the JDK is installed.
          When you do a manual install it will ask you if you want to install public JRE and you can choose the installation directory.

          These 2 options are also available for silent installation: /INSTALLDIRPUBJRE= or the location and ADDLOCAL="ToolsFeature,DemosFeature,SourceFeature" to skip the public JRE at all.

          Cees Bos added a comment - Once you download and install a JDK from Sun/Oracle it does install the JDK and it installs a jre folder inside the JDK directory AND it installs a public JRE. By default that is C:\Program Files\Java\jre6. This only occurs on windows, on linux only the JDK is installed. When you do a manual install it will ask you if you want to install public JRE and you can choose the installation directory. These 2 options are also available for silent installation: /INSTALLDIRPUBJRE= or the location and ADDLOCAL="ToolsFeature,DemosFeature,SourceFeature" to skip the public JRE at all.

          Cees Bos added a comment -

          Any update on this ticket? We still face issues with automatic JDK installations on windows.

          • Either skip installation of public JRE
          • Or install public JRE in Jenkins/tools folder as well.

          Cees Bos added a comment - Any update on this ticket? We still face issues with automatic JDK installations on windows. Either skip installation of public JRE Or install public JRE in Jenkins/tools folder as well.

          Garen Parham added a comment -

          Fixing this one issue would solve hordes of others (or fix a sub-problem of many issues already filed).

          Garen Parham added a comment - Fixing this one issue would solve hordes of others (or fix a sub-problem of many issues already filed).
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-7701 [ JENKINS-7701 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-6957 [ JENKINS-6957 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-11856 [ JENKINS-11856 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-2452 [ JENKINS-2452 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-7186 [ JENKINS-7186 ]

            Unassigned Unassigned
            cbos Cees Bos
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: