Java SE Runtime Environment Update Scenarios

Java SE Runtime Environment (JRE) may be installed in patch-in-place or static modes. This document describes various scenarios to demonstrate the behavior of the JRE update process. See Patch-in-Place and Static JRE Installation for more information about these modes.

The following topics are covered:

Note: Software versions, such as Java SE 7 Update 17, are represented by an abbreviation in the form of 7u17.

Updating patch-in-place JRE

This is the most likely scenario.

  1. The user installs JRE 7u17 as a patch-in-place JRE by default into the directory C:\Program Files\Java\jre7.
  2. The user gets prompted by Java Update to update to JRE 7u18.
  3. The user agrees and goes through the Java Update process.
  4. Java Update recognizes that the JRE 7u17 was installed as a patch-in-place JRE, and can therefore just patch-in-place to 7u18.
  5. Now only one 7u18 patch-in-place JRE is located in the directory C:\Program Files\Java\jre7. JRE 7u17 no longer exists in the computer.

Installing patch-in-place JRE when static JRE is present

  1. The user installs a static JRE 7u17 into the directory C:\Program Files\Java\jre1.7.0_17.
  2. The user gets prompted by Java Update to update to JRE 7u18.
  3. The user agrees and goes through the Java Update process.
  4. Java update ignores the previous static installation of JRE 7u17, and downloads a full copy of patch-in-place JRE 7u18, which is installed into C:\Program Files\Java\jre7.
  5. After the installation is finished, the user now has both a static JRE 7u17 in C:\Program Files\Java\jre1.7.0_17, and a patch-in-place JRE 7u18 in C:\Program Files\Java\jre7.

Installing static JRE when earlier patch-in-place JRE is present

  1. The user installs a patch-in-place JRE 7u17 into the directory C:\Program Files\Java\jre7.
  2. The user then installs a static JRE 7u18.
  3. The JRE 7u18 static installer ignores the existence of the patch-in-place JRE 7u17, and downloads a full copy of JRE 7u18, which is installed into C:\Program Files\Java\jre1.7.0_18.
  4. After the installation is finished, the user now has a patch-in-place JRE 7u17 in C:\Program Files\Java\jre7, and a static JRE 7u18 in C:\Program Files\Java\jre1.7.0_18.

Installing earlier patch-in-place JRE when later patch-in-place JRE is present, then reinstalling earlier patch-in-place JRE

  1. The user installs patch-in-place JRE 7u18 in C:\Program Files\Java\jre7.
  2. The user runs the JRE 7u17 iftw.exe installer in the default patch-in-place mode (iftw stands for install from the web).
  3. The JRE 7u17 installer detects that a later patch-in-place JRE that is present and switches to static mode.
  4. The user now has both a patch-in-place JRE 7u18 in C:\Program Files\Java\jre7, and a static JRE 7u17 in C:\Program Files\Java\jre1.7.0_17.
  5. The user runs the 7u17 iftw.exe installer in the default patch-in-place mode.
  6. 7u17 installer detects that 7u17 is already installed as static JRE and switches to static mode. In static mode, the installer prompts the user to reinstall. If the user selects yes, the static JRE 7u17 is uninstalled and reinstalled.
  7. After the installation is finished, the user now has both a patch-in-place copy of 7u18 in C:\Program Files\Java\jre7, and a copy of 7u17 JRE in C:\Program Files\Java\jre1.7.0_17.

Installing static JRE when same JRE version of patch-in-place JRE is present

  1. The user installs the patch-in-place JRE 7u17.
  2. The user runs the static JRE 7u17 installer.
  3. The Installer will uninstall the patch-in-place JRE 7u17 and install a static JRE 7u17. An entire download of the JRE 7u17 will take place.
  4. The user will be left with 7u17 static JRE at C:\Program Files\Java\jre1.7.0_17.

Attempting to install patch-in-place JRE when same JRE version of static JRE is present

  1. The user installs the static JRE 7u18.
  2. The user downloads and runs the patch-in-place JRE 7u18 installer.
  3. The installer will launch the static JRE 7u18 Microsoft Windows Installer (MSI) and the user will be prompted if he or she wants to reinstall.
  4. The user agrees to reinstall.
  5. The user will be left with a static JRE 7u18.

Installing earlier patch-in-place JRE when later static JRE is already present

  1. The user installs static JRE 7u18 into C:\Program Files\Java\jre1.7.0_18
  2. The user runs the JRE 7u17 iftw.exe installer in the default patch-in-place mode.
  3. After the installation is finished, the user now has both a static JRE 7u18 in C:\Program Files\Java\jre1.7.0_18, and a patch-in-place JRE 7u17.

Applying consecutive patches

  1. The user installs the patch-in-place JRE 7u16 (using the Windows Online or Offline Installer).
  2. The user installs the patch-in-place JRE 7u17 using the Windows Online Installer.
  3. The JRE 7u16 is patched in place to JRE 7u17.
  4. The user installs the patch-in-place JRE 7u18 using the Windows Online Installer.
  5. The JRE 7u17 is patched in place to the JRE 7u18.

Applying intermediate patches

  1. The user installs patch-in-place JRE 7u15 (using the Windows Online or Offline Installer).
  2. The user installs patch-in-place JRE 7u17 using the Windows Online Installer.
  3. The JRE 7u15 is patched in place to the JRE 7u17.
  4. The user installs the patch-in-place JRE 7u18 using the Windows Online Installer.
  5. The JRE 7u17 is patched in place to the JRE 7u18.

Installing later patch-in-place version using Windows Offline Installer

  1. The user installs the patch-in-place JRE 7u17 (using the Windows Online or Offline installer).
  2. The user downloads the JRE 7u18 Windows Offline Installer.
  3. The user runs the JRE 7u18 Offline Installer in the default patch-in-place mode.
  4. The JRE 7u17 is uninstalled and the patch-in-place JRE 7u18 is installed.
  5. The user will be left with a patch-in-place JRE 7u18.

Reinstalling static JRE when earlier patch-in-place JRE installed

  1. The user installs patch-in-place JRE 7u17 (using online or offline installer).
  2. The user installs static JRE 7u18 (using online or offline installer).
  3. The user launches patch-in-place JRE 7u18 installer (online or offline).
  4. The 7u18 installer detects that static JRE 7u18 already exists and switches to static mode. In static mode, the install prompts to reinstall. If the user selects yes, static JRE 7u18 is uninstalled and reinstalled.
  5. After the installation is finished, the user now has both a patch-in-place copy of patch-in-place JRE 7u17 in C:\Program Files\Java\jre7, and a copy of static JRE 7u18 in C:\Program Files\Java\jre1.7.0_18.

Reinstalling static JRE without explicitly installing as static

  1. The user installs the patch-in-place JRE 7u18 (using the Windows Online or Offline Installer).
  2. The user installs the patch-in-place JRE 7u17 in default mode (using the Windows Online or Offline Installer). The static JRE 7u17 is installed. The user now has the static JRE 7u17 and the patch-in-place JRE 7u18.
  3. The user uninstalls the patch-in-place JRE 7u18. The user now has the static JRE 7u17.
  4. The user installs the patch-in-place JRE 7u16 (using the Windows Online or Offline Installer). The user now has the patch-in-place JRE 7u16 and the static JRE 7u17.
  5. The user installs the patch-in-place JRE 7u17 (using the Windows Online or Offline Installer).
  6. The JRE 7u17 installer detects that the static JRE 7u17 is already installed. The installer switches to static mode. In static mode, the installer prompts the user to reinstall. If the user selects yes, the static JRE 7u17 is uninstalled and reinstalled.
  7. After the installation is finished, there are a patch-in-place JRE 7u16 in the directory C:\Program Files\Java\jre7, and a static JRE 7u17 in the directory C:\Program Files\Java\jre1.7.0_17.

Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.