Many software applications including Oracle GoldenGate Director and Installer depends on Java Runtime Environment or JRE. In most of the cases, JRE will be there in the system as it has been installed in the past when the system was configured or might have installed along with some other programs. If this environment is not there in the system where you are planning to install the server or client components, follow these steps to install JRE.
The first step in installing java runtime environment is to download the same.
Downloading Java Runtime Environment
Downloading Java Runtime Environment can be done for free of cost from Oracle website.
- Visit http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Click on the Java options and go to standard edition. Now select either current release or click on “Previous Releases” to install a supported version. You can go for either JDK or JRE as JDK contains JRE too. Do not go with an unsupported version or edition of Java JDK or JRE.
- Download the JDK or JRE suitable for your system, following the navigation directions.
- Follow the installation instructions provided with JRE
- The path should be saved to JRE executable file as it will be needed later.
- Proceed the instruction in verifying JRE environment.
Verifying the JRE Environment
In this session, the details of verifying the JRE on UNIX and Windows platforms are given.
Verifying the JRE on UNIX
Run the following test on your system after the installation to verify the version of Java that is recognized by the system.
Issue the following command from the command shell of the operating system
Java – version
Check whether the command output shows the version that has been downloaded. If it is the same then you have downloaded the right version.
Verifying JRE on Windows
Path to the JRE should be verified after the installation of JRE and before the installation of Oracle GoldenGate SErver. Following operations can be done for it.
Verify JRE Version
- Press the “Win” key and “R” key on the keyboard simultaneously to open “Run” box. You can also do it by going to “Start” and then to “Run”.
- Type “CMD” in the “Run” box to run the Windows command console
- Issue the following command. “Java – version”
- If the result shows the same version of JRE as you installed continue with the instructions for installing Oracle GoldenGate Server.
- If the results do not show the same version of JRE as you installed continue with steps in Set the Java_home system variable.
Set the Java_Home Variable
The following steps are for verifying the Java_Home environment variable points to the JRE you have installed.these step create variable points if they are absent.
- On the desktop of Windows 2000 or in the start menu of Windows XP right click on “My Computer” and then go to “Properties”.
- Click “Advanced” tag and then click on “Environment Variables”
- Under “System Variables” look for Java_Home variables. Java_Home path will direct to the location where the variables are recorded while installation.
- If the Java_Home variable is seen and it points to the right location, Leave the “Environment Variables” dialogue box open and continue with the steps in “Set the Java_Home System Path. If Java_Home variable is not found or pointing to the wrong location, continue with the following steps.
- Go to “System Variables” and click on “New” to create a Java_Home variable if the same is not found or click on “Java_Home Variable” and then on “Edit” if the variable is pointing to the wrong direction.
- Type JAVA_HOME in capital letters in the Variable name box
- Type the correct path to the JRE in the Variable Value box
- Click “OK” to set the path and close the dialogue box.
Set the Java_Home System Path
This is to ensure that Java_Home System path is in the right location within the “path system variable”.
- Look for “Path Variable” under “System Variables” in the “Environment Variables” dialogue box.
- Confirm that the path to Java_Home appears as the first path in the list of paths
- If this is the first path then close the “Environment Variables” and “System Properties” dialogue boxes and follow the instructions to install Oracle GoldenGate Server.
- If Java_Home path is not the first one, follow the following steps.
- Go to “System Variables” and double click on “Path variable” and open it for editing
- Locate the Java_Home path in the “Paths”. If It is there cut and paste it on the top of the list. If not, type %JAVA_HOME%\bin;
- Click “OK” to close the “Edit System Variable” dialogue box
- Close both the “Environment Variables” and “System Properties” boxes.