Installing BEA JRockit JDK

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Installing the BEA JRockit JDK

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.

 


Platform Support

For a complete list of supported platforms, please visit:

http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html

 


Important Note on JDK Version Numbering in this Guide

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

 


If You are Running Earlier Versions of BEA JRockit

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:

  1. Uninstall all earlier JRockit JRE releases before installing this release. Java Web Start and Java Plugin will not be available after this procedure.
  2. Install all earlier JRockit JRE releases that are needed before installing this release. Java Web Start and Java Plugin will be available if included in any of the earlier releases.
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.

 


Installing and Uninstalling BEA JRockit JDK

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.

Installing JRockit From an .exe or .bin File

In the following procedure you will run the self-installing executable (Windows) or the self-extracting binary.

To install BEA JRockit JDK
  1. Make sure you have downloaded the appropriate version of the BEA JRockit JDK for your operating system.
  2. On you local drive, locate the executable file for the version of BEA JRockit JDK you want to install:
  3. 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.
  4. Run the JDK installer.
    The install process begins and the BEA installer window appears, followed by the Welcome window.
  5. Click Next.
    The BEA License Agreement window appears.
  6. Select Yes and click Next.
    The Optional Tools window appears (see Figure 1-1).
  7. 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.
    Figure 1-1 Optional Tools Window


    Optional Tools Window

  8. Select the optional tools that you want to install and click Next.
    The optional tool’s licence agreement window appears.
  9. Select Yes and click Next.
    The Choose Product Directory window appears (see Figure 1-2).
  10. Note: The Mercury profiling tools are not allowed for use in a production type environment.
    Figure 1-2 Choose Product Directory Window


    Choose Product Directory Window

  11. Click Next if you are satisfied with the suggested installation directory.
    The Install Public JRE window appears (see Figure 1-3).
  12. 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.

    Figure 1-3 Install Public JRE Window (available for Windows 32-bit x86 machines only)


    Install Public JRE Window (available for Windows 32-bit x86 machines only)

  13. Do one of the following:
    • Click Yes to install public JRE
    • Click No not to install public JRE
  14. Click Next (the installation starts immediately after you click Next).
    The BEA Installer window appears and the installation process continues, as indicated on the progress meter in the lower right corner of the window (see Figure 1-4).
  15. Figure 1-4 BEA Installer Window with Progress Meter

    When the installation is complete, the Installation Complete window appears.

  16. Click Done.
  17. The BEA JRockit JDK is now installed.

Adding JRockit to Your Path

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

Uninstalling the JDK

This section describes how to uninstall the Windows, Linux, and Solaris versions of BEA JRockit JDK

Uninstalling Windows Versions

To uninstall BEA JRockit JDK, do the following:

  1. Click Start and open the All Programs menu.
  2. Select BEA JRockit(R) JDK [version] > Uninstall BEA JRockit(R) JDK [version].
    The BEA Uninstaller confirmation message appears.
  3. Click OK.
    • The BEA Uninstaller appears and the uninstall process commences.
  4. Click OK.

The JDK is removed from your computer.

Uninstalling Windows Versions from the Command Line

Run the following command from a console window:

%SystemRoot%\Installer\BEA\JRockit_JDK_<sun_version>\uninstall.exe

Uninstalling Linux and Solaris Versions from the Command Line

To uninstall Linux and Solaris versions of BEA JRockit, do the following:

  1. Ensure you are one step below the appropriate BEA JRockit product directory.
  2. From the command line, type:
  3. rm -rf jrockit-<jrockit_version>-jdk<sun_version>

    (where the product directory corresponds to your currently installed JRockit version) and press Enter.

The JDK is removed from your computer.

 


Installing and Uninstalling BEA JRockit JDK in Console Mode

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.

Installing Windows Versions in Console Mode

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:

  1. Open a command prompt box on your computer.
  2. Change to the directory from which you want to install BEA JRockit.
  3. At the command line, enter:
  4. 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.

Uninstalling Windows Versions in Console Mode

You cannot uninstall Windows versions of BEA JRockit JDK in the console mode. Instead, use the method described in Uninstalling Windows Versions.

Installing Linux and Solaris Versions in Console Mode

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.
  1. Change to the directory from which you want to install BEA JRockit.
  2. At the prompt, type:
  3. 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.

    The system responds:

    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.

Uninstalling Linux and Solaris Versions in Console Mode

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.

 


Installing and Uninstalling BEA JRockit JDK in Silent Mode

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.

The silent.xml File

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.

Listing 1-1 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>

Installing and Uninstalling Windows Versions in Silent Mode

These procedures apply to supported Windows platforms. See BEA JRockit JDK Platform Support for a list of supported platforms.

Installing Windows Versions in Silent Mode

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.

Uninstalling Windows Versions in Silent Mode

You cannot uninstall Windows versions of BEA JRockit JDK in silent mode. Instead, use the method described in Uninstalling Windows Versions.

Installing Linux and Solaris Versions in Silent Mode

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.

Uninstalling Linux and Solaris Versions in Silent Mode

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.

Using the Linux and Solaris man Pages

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:

man javac

 


Special Note About Root Access

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.


  Back to Top       Previous  Next