My Oracle Support Banner

Install Addendum for Java on Linux: After Oracle Java SE Installation on Linux the "java" Command Does Not Run the Expected Java Virtual Machine (Doc ID 1484373.1)

Last updated on OCTOBER 12, 2018

Applies to:

Java SE JDK and JRE - Version 6 and later
PeopleSoft Enterprise PT PeopleTools - Version 8.56 to 8.56 [Release 8.4]
Generic Linux

Symptoms

A JDK/JRE from Oracle has been installed on a Linux machine according to the installation instructions.  The "java" command does not run the JVM that has been installed.  Java applications can fail to run if an unexpected Java Runtime Environment is found.

Example from a Red Hat server:

$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

 

Changes

A new JDK/JRE from Oracle has been installed according to the installation instructions.

Example from a Red Hat server:

# rpm -ivh jdk-7u6-linux-x64.rpm

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
 Solution 1: Modify the PATH
 Solution 2: Use an absolute path
 Solution 3: Use update-alternatives


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.