OpenJDK 7 Download and Installation on Debian

OpenJDK Developers Guide

Quick guide to download and install OpenJDK 7 on Debian. - OpenJDK Community Version


What is OpenJDK


OpenJDK is the short form of Open Java Development Kit similar to Oracle's Java Development Kit used to develop Java Applications. Main difference between Oracle JDK and OpenJDK is that OpenJDK is free for all while Oracle Java Development Kit or Oracle JDK requires commercial license. For more details refer openjdk vs oracle jdk


If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.


Step #1: Download


Go to https://jdk.java.net/archive/ and download the OpenJDK 7 Debian tar distribution openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz. Here is the quick lik to download the OpenJDK 7 Debian tar file openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz




Step #2: Install



To Install OpenJDK 7 Debian Java Runtime ( openjdk-7-jre debian ) - Enter the below command on Debian command line.

$ sudo apt-get install openjdk-7-jre

The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then please install the openjdk-7-jdk package.
To Install OpenJDK 7 Debian Java Development Kit (JDK) - Enter the below command on Debian command line.

$ sudo apt-get install openjdk-7-jdk



Step #3: Configure / SET JAVA_HOME Path


Once the above steps are successfully completed , we need to set the "JAVA_HOME" and "PATH" environment variables. Enter the following commands to set your environment variables. Make sure that your environment variables point to a valid installation of JDK on your Debianmachine.

export JAVA_HOME=/usr/lib/jvm/openjdk-7-jdk


Add the JAVA bin directory to the PATH variable

export PATH=$PATH:$JAVA_HOME/bin


This will append the java bin directory to the existing PATH variable. You can also check the PATH variable by entering the following command



Step #4: Verify


Once the OpenJDK 7 Debian Download and installation is complete, we can verify the installed OpenJDK 7 version using below Command.



Go to Debian prompt and type java -version
The above command prints the OpenJDK 7 Debian version you installed.

Java -version
$ java -version
java version "7" 
Java(TM) SE Runtime Environment (build 7+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 7+36-1461, mixed mode, sharing)




Congratulations !!! Now you have installed OpenJDK 14 Successfully.

OpenJDK Known Issues


Note: Here is the list of OpenJDK known-issues OpenJDK Known Issues





Read Next:




OpenJDK On Windows





x