paint-brush
Setting up Java on Ubuntu linux and Windowsby@xameeramir
25,433 reads
25,433 reads

Setting up Java on Ubuntu linux and Windows

by Zameer AnsariDecember 25th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

After setting up <a href="http://xameeramir.github.io/install-git-windows-ubuntu-linux/" target="_blank">Git</a>, <a href="http://xameeramir.github.io/install-node/" target="_blank">node</a> and <a href="http://xameeramir.github.io/installing-cordova/" target="_blank">Cordova</a> one need to get the <a href="https://www.oracle.com/java/index.html" target="_blank">Java</a> setup done for moving towards getting <a href="http://ionicframework.com/docs/guide/installation.html" target="_blank">Ionic ready</a> on <a href="http://www.ubuntu.com/" target="_blank">Ubuntu linux</a>.

Company Mentioned

Mention Thumbnail
featured image - Setting up Java on Ubuntu linux and Windows
Zameer Ansari HackerNoon profile picture

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

Installing Java on Windows

Open the setup file downloaded from here

Follow the instructions as shown:

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

Select installation path

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

Now, we just need to setup environment variables.

Photos