This section describes how to install BEA JRockit as a standalone application. It includes information on the following subjects:
Note: | BEA JRockit JDK can be used by any application and does not interact with or create a BEA registry. |
For a complete list of supported platforms, please visit:
http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html
Installing BEA JRockit JDK describes how to install BEA JRockit JDK. Throughout this document you will see the following notation: jrockit-<jrockit_version>-jdk<sun_version>-<platform>
, for example, jrockit-R26.0.0-jdk1.5.0_04-win-ia32.exe
This release of JRockit JRE does not ship with Java Web Start or Java Plugin. Some earlier releases did and the installers and uninstallers of those versions do not behave properly when this release is installed. In order to avoid problems with this release, you should perform one of the following procedures before continuing with your installation:
Note: | Do not install or uninstall an earlier release of JRockit JRE while this release is installed. Doing so may corrupt the state of Java Web Start and Java Plugin. |
This section explains how to install and uninstall a standalone version of the BEA JRockit JDK for the following platforms:
Note: | When installing on Linux and Solaris, the default location for system prefs will be: |
Note: | <JAVAHOME>/.systemPrefs , where <JAVAHOME>=<JDK_INSTALLDIR>/jre or <JRE_INSTALLDIR> , unless the user is ‘root’ in which case /etc/.java/.systemPrefs is used. |
In the following procedure you will run the self-installing executable (Windows) or the self-extracting binary.
Note: | If you install the JDK on Linux or Solaris by using the .bin file , you need to ensure the file is executable. You can use chmod +x <filename> to make the file executable. |
Note: | If you are installing BEA JRockit JDK 1.4.2, the Optional Tools window does not appear. Please proceed to step 8 in Installing JRockit From an .exe or .bin File. |
Note: | The Mercury profiling tools are not allowed for use in a production type environment. |
Note: | If you are not installing BEA JRockit on Windows 32-bit x86, the Install Public JRE window does not appear. Please proceed to step 10 in Installing JRockit From an .exe or .bin File. |
If you want a different location for the installation you can pick one by clicking Browse or type a new directory into the Product Installation Directory field.
By clicking Reset, you set the selection back to the default directory.
When the installation is complete, the Installation Complete window appears.
Once you have installed JRockit, you need to add it to your path.
Use this command for Windows platforms:
set PATH=%ProgramFiles%\Java\jrockit-<jrockit_version>-jdk<sun_version>\bin;%PATH%
Use this command for Linux and Solaris platforms:
export PATH=$HOME/jrockit-<jrockit_version>-jdk<sun_version>/bin:$PATH
This section describes how to uninstall the Windows, Linux, and Solaris versions of BEA JRockit JDK
To uninstall BEA JRockit JDK, do the following:
The JDK is removed from your computer.
Run the following command from a console window:
%SystemRoot%\Installer\BEA\JRockit_JDK_<sun_version>\uninstall.exe
To uninstall Linux and Solaris versions of BEA JRockit, do the following:
The JDK is removed from your computer.
You can install JDK in console mode, rather than from a GUI. This section describes how to install BEA JRockit using console mode for Windows, Linux, and Solaris operating systems.
To install Windows version of BEA JRockit in console mode, enter the command for the version you want to install at the command line; for example, to install the Windows 32-bit x86 version of the JDK, do the following:
jrockit-<jrockit_version>-jdk<sun_version>-<platform>.exe -mode=console
The installation will commence with a new DOS window showing the extraction process. Once the extraction process is complete, the system will prompt you through the installation, replicating the procedures described in Installing and Uninstalling BEA JRockit JDK.
Note: | If you don’t specify -mode=console at the command line, the installer will revert to GUI mode, as described in Installing and Uninstalling BEA JRockit JDK. |
You cannot uninstall Windows versions of BEA JRockit JDK in the console mode. Instead, use the method described in Uninstalling Windows Versions.
To install BEA JRockit in console mode, do the following:
Note: | If you install the JDK on Linux or Solaris by using the .bin file, you need to ensure the file is executable. You can use chmod +x <filename> to make the file executable. |
jrockit-<jrockit_version>-jdk<sun_version>-<platform>.bin
-mode=console
(where NN
is your machine type; the following example is for a 32-bit machine) and press Enter.
Extracting 0%....................................100%
Once the extraction process is complete, the system will prompt you through the installation, replicating the procedures described in Installing and Uninstalling BEA JRockit JDK.
You cannot uninstall Linux and Solaris versions of BEA JRockit JDK in the console mode. Instead, use the method described in Uninstalling Linux and Solaris Versions from the Command Line.
The silent installation mode lets you set installation configurations only once and then use those configurations to duplicate the installation on many machines. During installation in silent mode, the installation program reads installation options from an XML file that you create prior to beginning the installation (see The silent.xml File). The installation program does not display any configuration options during the installation process. For more information on silent mode, please refer to “Installing WebLogic Platform Using Silent-Mode Installation” in the BEA WebLogic Server Installation Guide.
For a silent mode installation to be successful, you will need to create the file silent.xml
and store it on your computer. This file contains the values you want included in your set-up; for example, whether or not you want the Public JRE installed. Listing 1-1 shows an example of a silent.xml file.
<?xml version=”1.0” encoding=”UTF-8” ?>
<domain-template-descriptor>
<input-fields>
<!-- Installation dir -->
<data-value name=”USER_INSTALL_DIR" value=”c:\Program Files\Java\jrockit-R26.0.0-jdk1.5.0_04
” />
<!--
Install Public JRE
This option is available in Windows IA32 JDK installer
-->
<data-value name=”INSTALL_PUBLIC_JRE” value=”true” />
<!--
Optionally install Mercury profiling tools (not valid for JRockit 1.4.2),
possible values “true”,”yes”,”false” and “no”.
The default value for this option is “true”.
-->
<data-value name=”INSTALL_MERCURY_PROFILING_TOOLS” value=”true” />
</input-fields>
</domain-template-descriptor>
These procedures apply to supported Windows platforms. See BEA JRockit JDK Platform Support for a list of supported platforms.
To install the JDK in silent mode on Windows machines, enter at the command line (this procedure assumes that silent.xml
is stored in D:\Works\
):
>jrockit-<jrockit_version>-jdk<sun_version>-<platform>.exe -mode=silent -silent_xml=”D:\Works\silent.xml”
You will receive a message advising that files are being extracted and no other confirmation. If you want to confirm installation, click Start > Programs. If the installation is successful, you will see BEA JRockit JDK in your Program menu. If you installed the JRE (that is, you specified <data-value name=”INSTALL_PUBLIC_JRE” value=”true” /> in the silent.xml
file, you will also see BEA JRockit JRE in your Program menu.
Note: | If you want to create an install log, add the option -log=log.log at the end of the command. |
You cannot uninstall Windows versions of BEA JRockit JDK in silent mode. Instead, use the method described in Uninstalling Windows Versions.
These procedures apply to supported Linux and Solaris platforms. See BEA JRockit JDK Platform Support for a list of supported platforms.
To install the JDK in silent mode on Linux and Solaris machines, enter at the command line (this procedure assumes that silent.xml
is stored in /localhome/works/
):
>jrockit-<jrockit_version>-jdk<sun_version>-<platform>.bin -mode=silent -silent_xml=”/localhome/works/silent.xml”
Note: | You need to ensure the .bin file is executable. You can use chmod +x <filename> to make the file executable. |
You will receive a message advising that files are being extracted and no other confirmation. You can confirm installation by looking at your file system and finding the product directory you specified for BEA JRockit JDK.
Note: | If you want to create a log of your installation, add the option -log=log.log at the end of the command. |
You cannot uninstall Linux and Solaris versions of BEA JRockit JDK in silent mode. Instead, use the method described in Uninstalling Linux and Solaris Versions from the Command Line.
Note: | This information is only valid if you are running a linux_ia64 version of JRockit. For other releases, starting from R26.3, man pages have been removed. |
The Linux and Solaris version of BEA JRockit JDK and BEA JRockit JRE contain tool documentation as “man” (manual) pages. Most tools in <installdir>/bin
have man pages. They are available in English and Japanese.
If you have the BEA JRockit JDK as your default JDK, i.e. updated PATH
as described in Adding JRockit to Your Path:
then you simply enter the command man
followed by the tool name, for example:
If you choose to install BEA JRockit JDK or BEA JRockit JRE into a system-wide location such as /usr/local
, you must first become the root user to gain the necessary permissions. If you do not have root access, simply install BEA JRockit JDK or BEA JRockit JRE into a directory where you have permission to write, for example, your home directory.