Skip navigation.

Installing JRockit JDK

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Installing BEA JRockit JDK

This section describes how to install BEA JRockit 5.0 as a standalone application. It includes information on the following subjects:

Be aware that BEA JRockit 5.0 JDK can be used by any application and does not interact with or create a BEA registry. Also note that the BEA WebLogic Platform is not certified with this version of BEA JRockit.

 


Java 2 Standard EditionTM (J2SETM) Compatibility

BEA JRockit 5.0 is certified by Sun Microsystems, Inc. to be compatible with Java 2 Standard Edition (J2SE), version 5.0.

The JRE class files that are distributed with JRockit come directly from Sun except for a small number, which are tightly coupled to the JVM and are therefore overridden in BEA JRockit. The class files that are overridden are in the java.lang, java.io, java.net and java.util packages. There are no omitted classes. For procedures on installing the JRE only, please refer to Installing the BEA JRockit JRE.

 


Platform Support

For a complete list of supported platforms, please go to:

http://download.oracle.com/docs/cd/E13188_01/jrockit/docs50/certif.html

 


Important Note on JDK Version Numbering in this Guide

Installing BEA JRockit JDK describes how to install BEA JRockit JDK 5.0 Service Pack 2 with 1.5.0_03 class libraries. After step 1 in Installing the JDK, below, the JDK version will be referenced throughout this guide as 1.5.0_<version>; for example, instead of jrockit-jdk1.5.0_03, you will see jrockit-jdk1.5.0_<version>. As you use this guide, please assume that <version> refers to 03.

 


Installing and Uninstalling BEA JRockit JDK

This section explains how to install and uninstall a standalone version of BEA JRockit 5.0 JDK for Windows 2000, Windows 2003, and Windows Server 2003 EE and on the Red Hat Linux 32-bit and 64-bit platforms from a GUI.

Note: When installing on Linux, the default location for system prefs will be:

JAVAHOME/.systemPrefs, where JAVAHOME=<JDK_INSTALLDIR>/jre or <JRE_INSTALLDIR>

Alternatively, a root user may use the installer option -Djava.util.prefs.SystemRoot.location=system, changing the location for system prefs to:

/etc/.java/.systemPrefs

-Djava.util.prefs.SystemRoot.location=javahome is the default if not specified.

Installing the JDK

Note: The following procedure assumes that you have already downloaded the appropriate version of BEA JRockit JDK for your operating system.

To install BEA JRockit JDK, do the following:

  1. On you local drive, locate the executable file for the version of BEA JRockit JDK you want to install:
  2. In your file management system (for example, Windows Explorer) double-click the filename or icon.
  3. If you are using a Linux terminal, type ./jrockit-jdk1.5.0_<version>-linux-ia32.bin.

    The install process begins and the BEA installer window appears, followed shortly thereafter by the Welcome window.

  4. Click Next.
  5. The BEA License Agreement window appears.

  6. Select Yes and click Next.
  7. The Choose Product Directory window appears.

    Figure 1-1 Choose Product Directory Window

    Choose Product Directory Window


     


     
  8. Select a product directory as described in Table 1-1.

    Table 1-1 Selecting a Product Directory

    If you want to...

    Do this...

    Select a default product directory

    Continue the installation or, if you have changed the directory, click Reset to return to the default directory.

    Create a new product directory

    Either:

    • Type the name of the new directory (full path) in the text box.

    or

    • Click the Browse button to display a directory tree and navigate to and select the appropriate directory.

  9. Click Next. If you are installing JRockit on other platforms than Windows 2000 and Windows 2003, please proceed to step 10. in Installing the JDK.
  10. If installing on Windows 2000 or Windows 2003, the Install Public JRE window appears (Figure 1-2), prompting you to install or not install the public JRE (see Java Runtime Environment (JRE) for more information about the JRE).


     

    Figure 1-2 Install Public JRE Window (only visible for Windows 2000 and 2003)

    Install Public JRE Window (only visible for Windows 2000 and 2003)


     
  11. Do one of the following:
    • To install the Public JRE, click Yes Install Public JRE
    • To omit the public JRE, click No Don't Install Public JRE
  12. Click Next.
  13. The Install Java Plug-in window appears (Figure 1-3).The Java Plug-in extends the functionality of a web browser. For more information on the Plug-in, please refer to Using the Java Plug-in.

    Figure 1-3 Install Java Plugin Window

    Install Java Plugin Window


     
  14. Select the browser(s) you want to associate with the Java Plug-in and click Next. This screen will only list the browsers installed on your computer and the screen only appears on Windows platforms.
  15. Click Next.
  16. The install splash screen appears and the installation process continues, as indicated on the progress meter in the lower right corner of the window (Figure ).


     

    Figure 1-4 Install Splash Screen with Progress Meter

    Install Splash Screen with Progress Meter


     

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

  17. Click Done.

BEA JRockit JDK is now installed. To use JRockit, you need to add it to your path.

On Linux use this command:

export PATH=<your_install_dir>/bin:$PATH

Replace <your_install_dir> with the absolute path of the directory where you installed jrockit. The command could look like the following example:

export PATH=/home/user/jrockit-jdk1.5.0_<version>/bin:$PATH

On Window use this command:

set PATH=c:\Program Files\Java\jrockit-jdk1.5.0_<version>\bin;%PATH%

Uninstalling the JDK

This section describes how to uninstall both Windows and Linux versions of BEA JRockit JDK

Uninstalling Windows Versions

To uninstall BEA JRockit JDK, do the following:

  1. Click Start and open the Programs menu.
  2. Select BEA JRockit 5.0 JDK>Uninstall JRockit 5.0 JDK.
  3. The Uninstall confirmation message box appears.

  4. Click OK.
    • The Uninstalling BEA JRockit JDK screen appears and the uninstall process commences.
  5. Click OK.

This removes the JDK from your computer.

Uninstalling Windows Versions from the Command Line

Run the following command from a console window:

%systemroot%\Installer\BEA\JRockit_JDK_1.5.0_<version>\uninstall.exe

Uninstalling Linux Versions

To uninstall Linux 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-jdk1.5.0_<version>

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

This removes the JDK 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 both Windows and Linux 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 theWin-ia32 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-jdk1.5.0_<version>-win-ia32.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 though the installation, replicating in text the option GUIs 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 5.0 in the console mode. Instead, use the method described in Uninstalling Windows Versions.

Installing Linux Versions in Console Mode

To install BEA JRockit in console mode, do the following:

Note: If you install the JDK on Linux 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-jdk1.5.0_<version>-linuxxx.bin -mode=console

    (where xx is your machine type, either 32 or 64; 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 though the installation, replicating in text the option GUIs described in Installing and Uninstalling BEA JRockit JDK.

Uninstalling Linux Versions in Console Mode

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

 


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 Server 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, and which browser(s) you want to associate with the Java Plugin. Listing 1-1 shows an example of a typical silent.xml file.

Listing 1-1 Typical 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-jdk1.5.0_03\bin" />
<!--
Install Public JRE
This option is available in Win32 JDK installer
-->
   <data-value name="INSTALL_PUBLIC_JRE" value="true" /> 
<!--
Install Java plugin for Internet Explorer (IE)
if Internet Explorer is installed on the system.
This option is available in Win32 JRE installer.
It also works in Win32 JDK installer, but the
INSTALL_PUBLIC_JRE option must be "true"
-->
  <data-value name="REGISTER_PLUGIN_WITH_IE" value="true" /> 
  <!--
Install Java plugin with Netscape and Mozilla web browsers
if Netscape and Mozilla are installed on the system.
This option is available in Win32 JRE installer.
It also works in Win32 JDK installer, but the
INSTALL_PUBLIC_JRE option must be "true"
-->
  <data-value name="REGISTER_PLUGIN_WITH_NS_AND_MOZILLA" value="true" /> 

Installing and Uninstalling Windows Versions in Silent Mode

These procedures apply to supported Windows 32-bit and 64-bit platforms. See BEA JRockit JDK Platform Support for a list of supported Windows 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\):

For win-ia32:

>jrockit-jdk1.5.0_<version>-win-ia32.exe -mode=silent -silent_xml="D:\Works\silent.xml"

For win-ipf:

>jrockit-jdk1.5.0_<version>-win-ipf.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 5.0 JDK on 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 5.0 JRE on 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 5.0 in silent mode. Instead, use the method described in Uninstalling Windows Versions.

Installing Linux Versions in silent mode

Note: These procedures apply to supported Linux 32-bit and 64-bit platforms. See BEA JRockit JDK Platform Support for a list of supported Linux platforms.

To install the JDK in silent mode on Linux machines, enter at the command line (this procedure assumes that silent.xml is stored in /localhome/works/):

For linux-ia32:

>jrockit-jdk1.5.0_<version>-linux-ia32.bin -mode=silent -silent_xml="/localhome/works/silent.xml"

For linux-ipf:

>jrockit-jdk1.5.0_<version>-linux-ipf.bin -mode=silent -silent_xml="/localhome/works/.xml"

For Linux x64 (Intel EM64T and compatible):

jrockit-jre1.5.0_<version>-linux-x64.bin -mode=silent -silent_xml="/localhome/works/.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 5.0.

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 Versions in Silent Mode

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

Using the Linux man Pages

The Linux version of BEA JRockit 5.0 JDK and BEA JRockit 5.0 JRE now ships with tools documentation on "man" (manual) pages. Most tools in <installdir>/bin has a man page. English man pages are located in <installdir>/man1 and Japanese man pages are located in <installdir>/ja/man1.

If you have the BEA JRockit JDK as your default JDK, i.e. updated PATH as in the following example:

export PATH=/home/user/jrockit-jdk1.5.0_<version>/bin:$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 the JRockit Java 2 Runtime Environment into a system-wide location such as /usr/local, you must first become the root in order to gain the necessary permissions. If you do not have root access, simply install the JRockit Java 2 Runtime Environment into your home directory or a subdirectory to which you have permission to write.

 

Skip navigation bar  Back to Top Previous Next