Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM Runtime Environment Installation
|
Contents
The Java Runtime Environment (JRE) provides many APIs like Swing, AWT, ImageIO, SQL, CORBA, RMI, math, XML, XSLT, concurrency and so on. This has led to the JRE becoming large and slow to download and install.
This problem is solved by packaging a certain core set of JRE components (kernel) in the Java Kernel installer. The Java Kernel installer is smaller and thus downloads and installs the JRE much more quickly when compared to the regular online or offline installer.
The Java Kernel installer may be launched manually. Alternately, it may be launched via the Deployment Toolkit when deploying a Java Web App (applet or Java Web Start application).
When a user triggers the Java Kernel Installer, the kernel is downloaded first. The additional packages required for a Java Web App are downloaded next. The following dialog is displayed when additional packages are being downloaded.
The Java Web App continues execution after all required classes have been downloaded. However, the download connection remains open and all remaining classes are downloaded in the background, with no impact on the currently executing Java Web App.
The final JRE image created is identical to the image installed by the regular online or offline installer.
In the past, when a user installed different versions of a Java Runtime Environment (JRE), the user would be left with multiple installation directories and several entries in the Add/Remove Programs dialog in the Control Panel. This resulted in unnecessary proliferation of unused JREs.
The JRE can now be installed in two configurations: patch-in-place and static. JRE updates may be configured to patch a pre-existing installation or do a brand new installation.
The JRE may be installed in silent (unattended) or non-silent modes.
The patch-in-place mode implies that when a version of the JRE exists on a machine, any updates belonging to the same JRE family will be done in place, meaning, the existing JRE will be patched with changes. A JRE is installed in patch-in-place mode by default. The default installation directory is c:/Program Files/Java/jre<n> where n is the Java SE minor version number (for example, n = 6 for version 1.6.0_10).
For example, if a user has previously installed JRE 6u10 in the c:/Program Files/Java/jre6 directory, and now attempts to install JRE 6u14, the version 6u14 installer does not create a new directory. Instead, it updates the pre-existing c:/Program Files/Java/jre6 directory with the new 6u14 content. The user is left with the 6u14 JRE only. The 6u10 JRE no longer exists.
When a JRE is installed in the static mode, it will not be updated in place by newer versions. A later version of the same JRE family will be installed in a separate directory. This mode ensures that vendors, who require a specific version of the JRE for their product, can be certain that the JRE will not be overwritten by a newer version.
Some of the characteristics of a static JRE installation are as follows:
The default installation directory of a static JRE is of the form c:/Program Files/Java/jre<version>. For example, by default, a static JRE for Java SE 6u10 will be installed in the directory c:/Program Files/Java/jre1.6.0_10.
See JRE Update Scenarios to see examples of how the installer behaves.
<jre>.exe [/lang=<language ID>] /s
[INSTALLDIR=<drive>:\<install_path>]
[REBOOT=Suppress] [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
(see language IDs)
/s
, if used, specifies a silent installation
INSTALLDIR
, if used, specifies the drive and path of the installation
INSTALLDIR
is not specified, the installation will go into C:\Program Files\java\jre6
(default location).
REBOOT=Suppress
, if used, indicates that if locked files are encountered the computer should not be rebooted. Most JRE installations will not ask for a reboot.
STATIC=1
, if used, specifies a static installation
The online installer does not install additional Fonts, Colors, and Soundbank. Support for additional languages is downloaded / installed based on the system environment.
The offline installer always installs additional Fonts, Colors, and Soundbank and support for additional languages.
The Java Kernel installer does not support static installation.
Note: The command is case sensitive.
jre-6-rc-windows-i586.exe /s INSTALLDIR=D:\java\jre"
installs the JRE to D:\java\jre in silent mode
To keep the MS-DOS window open, until the installation of JRE is complete use the start /w
command as follows:
start /w jre-6-rc-windows-i586.exe
Run the following command to uninstall JRE silently for Implementation-Version n1.n2.n3_n4n5::
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F8ppn1n2n3n4n5tt}
where
pp
is 32 for 32-bit, or
64 for 64-bit.
tt
is F0 for a static installation, FF for an initial Patch-in-place mode install, or
FB for a patched-in-place installation.
Note:
msiexec.exe
executable is located in the windows system directory.
REBOOT=Suppress
option, mentioned above under installation, may also be used with the uninstall command.
Specification-Version
and Implementation-Version
Formats. The following examples show how different JRE versions and configurations can be uninstalled.
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216010FF}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216010F0}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216011FF}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216011F0}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216011FB}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F83216012FB}
msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F86416010FF}
Copyright
©2008 |
|