Use PPA to install Oracle Java 7 on Elementary OS 'luna'

Source: Internet
Author: User

Q: How can I install Oracle Java 7 on Elemetary OS Luna?

A: The steps for installing Java 7 in Elementary OS Luna are as follows: since Elementary OS is based on Ubuntu, we allow WEPUD8 PPA with multiple Java packages.

  1. Open the terminal.

  2. Run the following command to add the Java PPA to your software warehouse:

    $ sudo add-apt-repository ppa:webupd8team/javaYou are about to add the following PPA to your system:Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK6 / JDK7 / JDK8). There are no actual Java files in this PPA. More info: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.htmlDebian installation instructions: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.htmlMore info: https://launchpad.net/~webupd8team/+archive/javaPress [ENTER] to continue or ctrl-c to cancel adding it
  3. Press enter to continue

    gpg: keyring `/tmp/tmpB5WwDG/secring.gpg' createdgpg: keyring `/tmp/tmpB5WwDG/pubring.gpg' createdgpg: requesting key EEA14886 from hkp server keyserver.ubuntu.comgpg: /tmp/tmpB5WwDG/trustdb.gpg: trustdb createdgpg: key EEA14886: public key "Launchpad VLC" importedgpg: Total number processed: 1gpg: imported: 1 (RSA: 1)OK
  4. Update your system now

    $ sudo apt-get update
  5. Run the following command to install Java 7:

    $ sudo apt-get install oracle-java7-installer[sudo] password for enock:Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:gir1.2-gstreamer-0.10 libilmbase6 libmagickcore4 libmagickwand4 libcdt4libmagickcore4-extra liblqr-1-0 imagemagick-common libpathplan4 libopenexr6rsync netpbm libgvc5 libnetpbm10 libgraph4Use 'apt-get autoremove' to remove them.The following extra packages will be installed:gsfonts-x11 java-commonSuggested packages:default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfontsttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-minchottf-sazanami-mincho ttf-arphic-umingThe following NEW packages will be installed:gsfonts-x11 java-common oracle-java7-installer0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded.Need to get 88.5 kB of archives.After this operation, 473 kB of additional disk space will be used.Do you want to continue [Y/n]?
  6. Enter Y that represents Yes and enter the Enter key to continue the installation.

  7. During the installation process, you must agree to the terms to continue. Select OK.

  8. Then select Yes to continue.

  9. Please wait for the installation package to be downloaded and automatically installed:

  10. Installation is complete. You can view the Java version on the terminal:

    $ java -versionjava version "1.7.0_45"Java(TM) SE Runtime Environment (build 1.7.0_45-b18)Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Recommended reading:

New Elementary icon test version installation PPA

Elementary OS Luna stable version released

Slingshot: Ubuntu installs the Elementary OS starter

Install Oracle Java 7 (JDK) on Ubuntu)

Oracle JDK 7u40 released

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.