JDK installation

Top  Previous  Next

Often Linux distribution packages have JVM pre-installed.


It is recommended to install the latest version of Oracle JDK (Java Development Kit), because JDK has a set of useful diagnostics tools that JVM doesn't have.


You have to download installation package or archive for the JDK installation from oracle.com.


At the time of writing this documentation installation packages for different Linux distribution packages were available via this link: Java SE Development Kit 8 Downloads


Universal package, that suits for all Linux distribution packages, is jdk-8u25-linux-x64.tar.gz archive.


Installation steps:


#Unpacking the archive
$tar -xvzf jdk-8u25-linux-x64.tar.gz
#Copying in the destination folder
mv -R jdk-8u25 /usr/java/jdk-8u25
#Create symlink for convenience
$ln -sf /usr/java/jdk-8u25 /usr/java/default
#Create symlink to executive java file
$ln -sf /usr/java/default/bin/java /usr/bin/java


JDK installation is completed




Figure above shows how server with installed JVM / JDK looks like. Turn your attention to the string: 64-Bit Server VM. Java works in 64-bit mode using server settings.