Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»JAVA»How to Install Java 7 (JDK 7u76) In Ubuntu 16.04, 14.04 LTS, 12.04 LTS & LinuxMint Via PPA

    How to Install Java 7 (JDK 7u76) In Ubuntu 16.04, 14.04 LTS, 12.04 LTS & LinuxMint Via PPA

    RahulBy RahulJanuary 4, 20152 Mins ReadUpdated:October 16, 2017
    Warning – Java 7 is officially deprecated by Oracle team. It is no more available for download on the public network. The Oracle team recommends upgrading to Java 8 or Java 9. You can follow below tutorials to install accordingly.

    • JAVA 8 – Install on Ubuntu, LinuxMint
    • JAVA 9 – Install on Ubuntu, LinuxMint

    This article will help you to Install Oracle JAVA 7 (JDK/JRE 7u76) on Ubuntu 14.10, 14.04 LTS and 12.04 LTS and LinuxMint systems using PPA File. To Install Java 8 in CentOS, Redhat and Fedora read This Article.

    install java

    Install JAVA

    Add the webupd8team Java PPA repository in our system and install Oracle Java 7 using following set of commands. During installation installer will prompt for accepting license agreement.

    $ sudo add-apt-repository ppa:webupd8team/java
    $ sudo apt-get update
    $ sudo apt-get install oracle-java7-installer
    

    Verify Java Version

    After successfully installing Oracle Java 7 on Ubuntu & LinuxMint systems using above step, Le’ts verify installed version of Java on your system using following command.

    $ java -version
    
    java version "1.7.0_76"
    Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
    

    Step 3: Setup JAVA Environment

    Webupd8team is providing a package to set Java 7 as default with environment variables. Install this package using following command.

    $ sudo apt-get install oracle-java7-set-default
    

    References:
    https://launchpad.net/~webupd8team/+archive/java

    Java java-install java7 jdk jre Oracle
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Improve Power Management in Ubuntu using TLP
    Next Article How to Install Noise Music Player on Ubuntu

    Related Posts

    How to Install JAVA on Ubuntu 22.04

    Updated:May 16, 20224 Mins Read

    Java HashMap – How to Get Value from Key

    Updated:April 6, 20222 Mins Read

    Java HashMap – How to Get Key from Value

    Updated:April 6, 20222 Mins Read

    5 Methods to Print an Array in Java

    Updated:April 21, 20222 Mins Read

    How To Install Java on Debian 11

    4 Mins Read

    How to Install Tomcat 10 on Ubuntu 20.04

    Updated:February 18, 20226 Mins Read

    3 Comments

    1. noname on June 6, 2017 6:55 pm

      NOT WORK

      Reply
    2. Michael on June 3, 2016 1:49 am

      Easy as 1,2,3.. Thanks!

      Btw, how can I switch between from Java7 to Java8 and vice versa?

      Reply
    3. john on February 3, 2015 1:58 pm

      Simple and rocking steps…. thanks guys….

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.