This section discusses options for installation of the Java Runtime Environment (JRE) on Windows 32-bit platform. It is intended for:
Java™ SE Runtime Environment (JRE) installations are built using Microsoft Window Installer (MSI) 2.0 technology. MSI contains built-in support for silent or unattended installations. This document tells how to manually install the JRE using the .exe that launches the MSI installation. The installer options are explained.
In Java SE 6 The Windows offline installation command has the same syntax as the Windows Installation. The command is as follows:
<jre>.exe [/lang=<language ID>] [/s]
[IEXPLORER=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>] [STATIC=1]
where
<jre>.exe
is the single executable installer for the Java Runtime Environment (JRE)/lang=<language ID>
, if used, sets the localized language for the installer. For a complete list, please see Language IDs./s
, if used, indicates silent installationIEXPLORER=1
, if used, indicates that the Plug-in should be registered as the default Java VM with the Internet Explorer browserMOZILLA=1
indicates that the Plug-in should be registered with Mozilla 1.1 and later and Netscape browsersINSTALLDIR
, if used, specifies the drive and path of the installationINSTALLDIR
is not specified, the installation will go into C:\Program Files\java\jre1.6.0
(default location).STATIC=1
, if used, specifies a static installation. This option is available in the 6u10 release and above. For more information on static install, please see Java Runtime Environment Configuration.
Note The following options have been deprecated starting in release Java SE 6 update 10:
|
Suppose the JRE installer is jre-6-rc-windows-i586.exe and
you want to install the following configuration:
The command to install the above mentioned configuration is as follows:
jre-6-rc-windows-i586.exe /s MOZILLA=1
Suppose the JRE installer is jre-6-rc-windows-i586.exe and
you want to install the following configuration:
D
drive at java\jre
The command to install the above mentioned configuration is as follows:
jre-6-rc-windows-i586.exe /s IEXPLORER=1 INSTALLDIR=D:\java\jre
Note To keep the MS-DOS window open, until the installation of JRE is complete use the
|
Log file can be used to verify if an installation succeeded. To create a log file describing the installation append /L C:\<path>setup.log
to the install command and scroll to the end of the log file to verify.
The following is an example for installation:
jre-6-rc-windows-i586.exe /s /L C:\<path>setup.log
The above command causes the log to be written to the setup.log
file.