Courses Designed for Students / Working Professionals, We Teach Python, Java, RPA UI Path, Golang, Cordova, MySQL, SQL

Blog -> Bloglist

Install Oracle Java on Debian/Ubuntu 14.04 Linux

Step 1: Install Java 8 (JDK 8)

    Add the webupd8team java PPA repository in your system and install Oracle java8 
    using following set of commands.
    
$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer

Step 2: Verify JAVA Version

    
    Verify installed version using following command:
    
$ java -version
java version "1.8.0_20"

Step 3: Setup JAVA Environment

    Set environment variables, Install this package using following command.
    
$ sudo apt-get install oracle-java8-set-default

Note: If you found some dependencies errors on Ubuntu run this command

    
$ sudo apt-get install -f