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 NOVEMBER 05, 2016

Applies to:

Java SE JDK and JRE - Version 6 and later
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:

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms