Last updated 22 September 2010.
(c) Copyright International Business Machines Corporation, 2010. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
The Update Installer for Java updates IBM-supplied releases and service refreshes of the Java SDK and JRE with updates that are provided by IBM support. Two types of updates are supported:
An update can contain any of the following file types:
The Update Installer for Java updates an IBM-supplied SDK or JRE with the update if two conditions are met:
For IBM Java 1.4.2, Java 5.0 and Java 6:
For IBM Java on Solaris or HP-UX:
To download and install the Update Installer for Java:
Before you begin, ensure that:
Run the Update Installer for Java from the command line, using the following syntax:
java -jar JavaUpdateInstaller.jar [-options]where -options include:
To search for Java installations, use the -discover option. The Update Installer for Java determines which system directories to search using the file DirectorySearch.txt. Edit this file to restrict the directories that are searched. By default, every directory is searched. To learn more about restricting your search, see Selective searching. Any SDKs or JREs found during the search are listed in the file SDKList.txt.
Use the -discover update option to search for SDKs or JREs that are compatible for the specified update. You can use Selective searching to restrict the directories that are searched. The Update Installer for Java records the SDKs or JREs that have updates applied in the SDKlist.txt file.
The SDKList.txt file is re-generated every time you run the tool with the –discover option. Edit this file to remove any Java installations that you do not want to update. This example Windows SDKList.txt file shows four Java installations:
C:\JDKS\pwi3260sr3-20081106_07-sdk\sdk C:\JDKS\pwi3260sr4ifx-20090228_01-sdk\sdk C:\JDKS\pwi3260sr5-20090529_04-sdk\sdk C:\Program Files\IBM\Java60
Directory searching is controlled by the DirectorySearch.txt file. Edit this file to restrict where the Update Installer for Java searches for SDKs or JREs on your system. Each entry must begin on a new line.
You can add and remove locations from the search by including a directory in the DirectorySearch.txt file with a + or - at the beginning. There must not be a space between the + or - and the name of the directory.
On Windows, a DirectorySearch.txt file containing:
+c:\programs -c:\programs\ibm\java5
causes the Update Installer for Java to recursively search the contents of the c:\programs directory, excluding c:\programs\ibm\java5 and all its subdirectories.
On other platforms, a DirectorySearch.txt file containing:
+/usr -/usr/bin
causes the Update Installer for Java to recursively search the contents of the /usr directory, excluding /usr/bin and all its subdirectories.
If the all entry is the first entry in the DirectorySearch.txt, the Update Installer for Java searches everywhere on the system except for specified exclusions. If the all entry is not in the file, or is not the first entry in the file, the Update Installer for Java searches only in specified locations.
On Windows, a DirectorySearch.txt file containing:
all -c:\workarea
causes the Update Installer for Java to search the entire system except the c:\workarea directory.
On other platforms, a DirectorySearch.txt file containing:
all -/proc
causes the Update Installer for Java to search the entire system except the /proc directory. This is the default on AIX, z/OS, Linux, Solaris, and HP-UX platforms.
By default, the Update Installer for Java does not search the /proc directory. This directory is excluded because it contains dynamically generated directories that could form an infinite loop.
You might also consider excluding the /dev and /sys directories depending on your platform. The /etc, /tmp, and /var directories are also unlikely to contain JREs.
Install updates to Java installations using the -install option.
Use -install update SDKlistFile to install updates to multiple SDKs or JREs, where:
You can also update a specific SDK or JRE using the -install update SDK-Path option, where SDK-Path is the file path to the SDK or JRE installation.
The Update Installer for Java issues a warning message if the update you want to install is incompatible with an existing update. Restore the SDK or JRE to a full service refresh level or approved i-fix level before attempting the update process again.
If the update is compatible with the SDK or JRE, the Update Installer for Java backs up all the files that need to be updated in the directory BackupDirectory\updateName. This directory is created as a sub-directory within the SDK or JRE installation. The original files are overwritten by the files contained in the update.
The -force option is the same as the -install option, but without an update compatibility check. The Update Installer for Java does not check if the specified update is compatible with updates that are already applied to the Java installation by the Update Installer for Java.
When you use the Update Installer for Java to update a Java installation, the tool maintains two key files in the root SDK or JRE install directory:
Example: JUIUpdateData.xml file.
These data files must not be modified in any way.
Use the -query SDK-Path option to check the updates applied to a Java installation, where SDK-Path is the file path to the SDK or JRE installation. The Update Installer for Java retrieves the information from the JUIUpdateData.xml file.
On IBM Java 6, the Update Installer for Java modifies the output of the java -version command to include the update details. Run this command to check whether the SDK or JRE has been updated correctly.
java version "1.6.0" Java(TM) SE Runtime Environment (build pwi3260sr5-20090529_04(SR5) + 56789,001,866_FIX_1) IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr5-20090519_35743 (JIT enabled, AOT enabled) J9VM - 20090519_035743_lHdSMr JIT - r9_20090518_2017 GC - 20090417_AA) JCL - 20090529_01
The example output is taken from an IBM Java 6 SR5 installation on 32-bit Windows that has update 56789.001.866_FIX_1 applied.
Remove an update from a Java installation using the -remove UpdateName option, where UpdateName is the test fix or debug module name. The tool uses the information stored in the JUIUpdateData.xml file, and the backup created during updating, to complete the process.
If you try to remove an update that depends on another update, a warning message is issued. In this situation you must remove all the updates from the Java installation using the -remove all option.
The following topics are known limitations of the Update Installer for Java:
If you still experience problems with the Update Installer for Java after reviewing these known limitations, see Debugging problems with the Update Installer for Java.
Attempting to install or remove an update for the JRE that is running the Update Installer for Java can result in the following error message:
java.io.FileNotFoundException: C:\pwi3260sr8-20100409_01-sdk\sdk\jre\bin\j9gc24.dll (The process cannot access the file because it is being used by another process.) at java.io.FileOutputStream.To avoid this problem, run the Update Installer for Java with a different SDK or JRE. If you do not have another SDK or JRE available, duplicate the JRE you are using to run the Update Installer for Java.(FileOutputStream.java:179) at java.io.FileOutputStream. (FileOutputStream.java:131) at com.ibm.jui.juiUtil.JUIFileUtil.copyFile(JUIFileUtil.java:84) at com.ibm.jui.juiImpl.Update.installUpdate(Update.java:464) at com.ibm.jui.juiImpl.Update.install(Update.java:119) at com.ibm.jui.JavaUpdateInstaller.parseArguments(JavaUpdateInstaller.java:202) at com.ibm.jui.JavaUpdateInstaller.main(JavaUpdateInstaller.java:40)
If you update a JRE using SMP/E on z/OS or installp on AIX, the SMP/E or installp utilities might flag the JRE as corrupt or inconsistent. This message is expected because you have modified the JRE.
If an error occurs during the update process, the tool attempts to revert the changes it has made. All actions that the Update Installer for Java takes while updating or restoring the SDK are logged to a file JUIError.log in the tool installation directory. You should review this file to help with problem determination.