Linux Java

Information on where java is installed on Linux machines

Reviewed by John Sopko 4/27/2012

The standard location for the Java software on UNIX/Linux systems is at:


To get the latest version of java on linux machines, make sure /usr/java/java/bin is in your path BEFORE /usr/bin! The /usr/bin/java command is the OpenJDK of Java which you probably do not want.

To see the version of java that is installed execute:

/usr/java/java/bin -version

For example:

% /usr/java/java/bin/java -version
java version “1.6.0_23”
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Server VM (build 19.0-b09, mixed mode)