Setting up Java on Ubuntu linux and Windows by@xameeramir

Setting up Java on Ubuntu linux and Windows

Read on Terminal Reader
react to story with heart
react to story with light
react to story with boat
react to story with money
image
Zameer Ansari HackerNoon profile picture

Zameer Ansari

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:

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

image

Installing Java on Windows

Open the setup file downloaded from here

Follow the instructions as shown:

image

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

image

Select installation path

image

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

image

image

image

image

image

Now, we just need to setup environment variables.

Photos

react to story with heart
react to story with light
react to story with boat
react to story with money
L O A D I N G
. . . comments & more!