Setting up Java on Ubuntu linux and Windows

Java logo


After setting up Git, node and Cordova one need to get the Java setup done for moving towards getting Ionic ready on Ubuntu linux.

Setting up Java on Ubuntu Linux

Enter the command sudo apt-get install openjdk-7-jdk. Enter the root password and let the system do it’s tasks.

Enter apt-cache search jdk

Set “JAVA_HOME” and “PATH” environment Variables:

Setting up JAVA environment variables on Ubuntu linux

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk export PATH=$PATH:/usr/lib/jvm/java-7-openjdk/bin

Finished, now just verify the installation by checking the installed version:

javac -version

Checking Java version on Ubuntu linux

Installing Java on Windows

Open the setup file downloaded from here

Follow the instructions as shown:

Welcome Java installation wizard

Select installation components - this may be required for servers where specific configurations are needed

Select Java installation components

Select installation path

Select Java installation path

Incase you already have Java installed, a warning will be shown

Already installed Java warning

Wait for Java installation

Wait for Java installation

Wait for Java installation

Successfully installed Java

Now, we just need to setup environment variables.


Nordible is a digital solutions provider helping organizations achieve their digital goals.

We develop and measure digital solutions, implement impactful brand promotion and SEO strategies and develop software driven by rigorous testing that help your business succeed online and beyond.

You can contact us at for business inquiries.

Follow us: