0% found this document useful (0 votes)
22 views

Installing Oracle JAVA JDK 8 On Ubuntu (Offline) (Updated) - TricksUniversity September 2016

This document provides steps to install Oracle JDK 8 on Ubuntu. It details downloading the JDK file, extracting and moving it to the proper location, and configuring alternatives to set the JDK as default. Screenshots are included to illustrate the process.

Uploaded by

Aji Thesniper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Installing Oracle JAVA JDK 8 On Ubuntu (Offline) (Updated) - TricksUniversity September 2016

This document provides steps to install Oracle JDK 8 on Ubuntu. It details downloading the JDK file, extracting and moving it to the proper location, and configuring alternatives to set the JDK as default. Screenshots are included to illustrate the process.

Uploaded by

Aji Thesniper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Installing Oracle JAVA JDK 8 on Ubuntu

[Ofine] [ Updated ]
1Comment

NarendraBagul

3Mar2016

Editthispost

How to Installing Oracle JDK 8 on Ubuntu ofine new 2016 with important setting and set path in Linux

Hey Guys Today I'm posting a blog for the students who wish to learn Java Programming Language on
Ubuntu. Here I'm sharing step by step Guide to Install Java on Ubuntu or Linux. By using this guide you able to
install Java on your Linux machine. Here I'm also providing some settings which will help you to set the path.
Set path mean's you can run java programs from any folder. Before starting, Download java from the given
link according to your operating system version (X64for64bitandX86for32bit). Follow the given steps
and if you have any confusion, refer the Screenshots.

Pre Requirement / Downloads :


DownloadtheOracleJDK8tarfilefromhere.

Steps To Install JDK on Ubuntu :


Step 1: Copy the Downloaded Java into home directory .
Step 2: Change the permission by clicking on properties . [change to Read, Write, Execute(777)]
Step 3: Now Open The Terminal and Paste this command
Copy All Code
tarxvzfjdk8u51linuxx64.tar.gz

Press Enter.
Step 4: Create jvm folder in /usr/lib by the following command .
Copy All Code
sudomkdir/usr/lib/jvm

Step 5: Move extracted jdk 8 folder to this location


Copy All Code
sudomvjdk1.8.0/usr/lib/jvm/jdk1.8.0

Step 6: Install new java source in the system:


Copy All Code
sudoupdatealternativesinstall/usr/bin/javacjavac/usr/lib/jvm/jdk1.8.0/bin/javac1
sudoupdatealternativesinstall/usr/bin/javajava/usr/lib/jvm/jdk1.8.0/bin/java1
sudoupdatealternativesinstall/usr/bin/javawsjavaws/usr/lib/jvm/jdk1.8.0/bin/javaws1

Step 7: Choose default java:


Copy All Code
sudoupdatealternativesconfigjavac
sudoupdatealternativesconfigjava
sudoupdatealternativesconfigjavaws

Step 8: Now you have successfully installed java in your system.

Screen-Shots:

Thank you guys,


Enjoy learning and please do comment and share the post if you like.

2016TricksUniversity
Allrightsreserved.

You might also like