Installing OpenJDK 6 on Ubuntu

OpenJDK Developers Guide

In this guide, we will see how to download and install OpenJDK 6 on Ubuntu. - 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.


Note: To uninstall previously installed OpenJDK please refer Uninstall openJDK ubuntu



Step #1: Download


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




Step #2: Install



To Install OpenJDK 6 Ubuntu Java Runtime Or install jre ubuntu - Enter the below command on Ubuntu command line.

$ sudo apt-get install openjdk-6-jre

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

$ sudo apt-get install openjdk-6-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 Ubuntumachine.

export JAVA_HOME=/usr/lib/jvm/openjdk-6-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 6 Ubuntu Download and installation is complete, we can verify the installed OpenJDK 6 Ubuntu version using below Command.



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

Java -version


Verify the installed OpenJDK 6 Ubuntu version on windows

Congratulations !!! Now you have installed OpenJDK 6 Ubuntu Successfully.


Step #5: OpenJDK Known Issues


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



Here are the ubuntu openjdk packages you might be interested in!


Ubuntu package openjdk-8-jdk
Ubuntu package openjdk-9-jdk
Ubuntu package openjdk-11-jdk
Ubuntu package openjdk-13-jdk
Ubuntu package openjdk-14-jdk
Ubuntu package openjdk-15-jdk


If you are looking out for earlier OpenJDK versions, go to OpenJDK Archive




Checkout OpenJDK Related Posts :




  1. OpenJDK On Ubuntu
  2. OpenJDK 7 Installation on Ubuntu
  3. OpenJDK 8 Installation on Ubuntu
  4. OpenJDK 9 Installation on Ubuntu
  5. OpenJDK 10 Installation on Ubuntu
  6. OpenJDK 11 Installation on Ubuntu
  7. OpenJDK 12 Installation on Ubuntu
  8. OpenJDK 13 Installation on Ubuntu
  9. OpenJDK 14 Installation on Ubuntu
  10. OpenJDK 15 Installation on Ubuntu


  1. Install OpenJDK On CentOS
  2. Install OpenJDK 8 on CentOS
  3. Install OpenJDK 7 on CentOS
  4. Install OpenJDK 6 on CentOS


  1. OpenJDK On Windows
  2. OpenJDK 7 Installation on Windows
  3. OpenJDK 8 Installation on Windows
  4. OpenJDK 9 Installation on Windows
  5. OpenJDK 10 Installation on Windows
  6. OpenJDK 11 Installation on Windows
  7. OpenJDK 12 Installation on Windows
  8. OpenJDK 13 Installation on Windows
  9. OpenJDK 14 Installation on Windows
  10. OpenJDK 15 Installation on Windows




x