Consultor Eletrônico



Kbase P5556: How to change JDK/JRE version on UNIX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/8/2010
Status: Verified

GOAL:

How to use a different Java version with Progress?

GOAL:

How to change JDK/JRE version for Progress to use?

GOAL:

How to change the java used by the Progress install

GOAL:

How to change the JDK that was installed by progress

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
UNIX

FIX:

The JDK/JRE used with a Progress installation on UNIX can be changed in a number of ways.

** Before making changes, take a copy of the original java_env script and of the directories $JDKHOME and $JREHOME as a backup **

To change the JDK/JRE location, perform 1 of the following 4 options:

Option #1
Modify the Java environment variables in the $DLC/java_env file to point to the desired java install location. Progress sets the key environment variables for the JDK/JRE within the script $DLC/bin/java_env file.
To point a Progress installation to a different JDK installation perform the following:

Modify the JDKHOME and JREHOME environment variables in the $DLC/bin/java_env file.

For example, when Progress installs the JDK and JRE, it is within $DLC/jdk and $DLC/jre respectively. The java_env file by default will contain:

JDKHOME=${JDKHOME-$DLC/jdk}
JREHOME=${JREHOME-$DLC/jre}

Modify the script $DLC/bin/java_env by replacing the above lines with the location of the desired Java installation:

JDKHOME=/opt/java/jdk
JREHOME=/opt/java/jre

Option #2
If you are installing a new version of Java on the Operating System you can install the new version of JDK/JRE over the existing one to avoid changing the java_env file.

Option #3
Set the environments variables in the shell script that starts Progress manually prior to starting any Progress components. Stop the AdminServer prior to overwriting the Java version used. Be prepared to reverse your modification. For example:

JDKHOME=/opt/java/jdk;export JDKHOME
JREHOME=/opt/java/jre;export JREHOME

Option #4
To change the JRE location using Unix soft links perform the following:

a. Rename the JRE directories under $DLC to something else.
b. Install the downloaded JRE/JDK onto the system.
c. Create a soft link under $DLC called JRE that points to the jre directory.

For example: cd $DLC ln -s <jre-install> jre