[Java SE] 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 FEBRUARY 09, 2024
Applies to:
Java SE JDK and JRE - Version 6 and laterPeopleSoft Enterprise PT PeopleTools - Version 8.56 to 8.56 [Release 8.4]
Generic Linux
Symptoms
Disclaimer: The directories and paths used in this article represent fictitious sample names that make up an example. Any similarity to actual code is purely coincidental and not intended in any other manner.
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
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 |