Installing Oracle JAVA JDK 8 on Ubuntu [Offline] [ Updated ]

Installing Oracle JAVA JDK 8 on Ubuntu [Offline] [ Updated ]

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

How to Set Path of Java ? [Windows] [With ScreenShot ]
How To Assign Keyboard Shortcuts for Programs ?
[Most Wanted Trick] Disable/Block Photo Tagging on Facebook [Updated]
Java on Ubuntu Linux offline 2016 Tricksuniversity

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 (X64 for 64-bit and X86 for 32-bit). Follow the given steps and if you have any confusion, refer the Screenshots.

    • Pre Requirement / Downloads :

    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

    [tar -xvzf jdk-8u51-linux-x64.tar.gz ]

    Press Enter.

    Step 4:  Create jvm folder in /usr/lib by the following command .

    [sudo mkdir /usr/lib/jvm ]

    Step 5:  Move extracted jdk 8 folder to this location

    [sudo mv jdk1.8.0 /usr/lib/jvm/jdk1.8.0 ]

    Step 6:  Install new java source in the system:

    [sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0/bin/javac 1
    sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.8.0/bin/java 1
    sudo update-alternatives –install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8.0/bin/javaws 1
    ]

    Step 7: Choose default java:

    [sudo update-alternatives –config javac
    sudo update-alternatives –config java
    sudo update-alternatives –config javaws
    ]

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

    Screen-Shots:

    Java on Ubuntu Linux offline 2016 Tricksuniversity

    Java on Ubuntu Linux offline 2016 Tricksuniversity

    Java on Ubuntu Linux offline 2016 Tricksuniversity

    Java on Ubuntu Linux offline 2016 Tricksuniversity

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

    COMMENTS

    WORDPRESS: 0
    DISQUS: 1
    banner