Consultor Eletrônico



Kbase P27158: How can I force my Progress 9.1x UNIX installation to use a specific version of Java?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Unverified

GOAL:

How can I force my Progress 9.1x UNIX installation to use a specific version of Java?

GOAL:

How to force the Progress 9.1x UNIX installation to use a specific version of Java.

GOAL:

How to redirect my Progress 9.1x UNIX installation to use a specific Java installation?

FACT(s) (Environment):

UNIX
Progress 9.1x

FIX:

To accomplish this task, you must set the JREHOME environment variable. However, this environment variable can not simply be set within the shell your working in. It must be set within the Progress "proadsv" script. Follow the sequence of steps to accomplish this task:

1. Navigate to the $DLC/bin directory

2. Edit Progress "proadsv" script

3. Within the "proadsv" script, add the following section:
"JREHOME=$DLC/jre;export JREHOME"
before the "#set the Java environment" section

EXAMPLE:

JREHOME=$DLC/jre;export JREHOME
# set the java environment
if [ ! -f $DLC/bin/java_env ]
then
echo "Progress $PROG Messages:"
echo
echo "java_env could not be found."
echo
echo "JAVA environment not set correctly."
echo "Progress DLC environment variable may not be set correctly."
echo "Set DLC variable to Progress installation directory."
echo
echo "Progress DLC setting: $DLC"
echo
echo
exit 1

4. Save the file.

5. Next, enter "JREHOME/bin" and "$JREHOME" to the system's PATH

EXAMPLE:

PATH=$JREHOME/bin:$PATH;export PATH

6. Restart the AdminServer

7. On the command line, enter:

java -version

8. You should now see the installed Java version.