Installing Java under Linux

Source: Internet
Author: User

Because you have to go to Cs61b:data structures This course (which is said to be a god Class), you have to install Java. Then sudo apt-get install openjdk-8-jdk This command to find locate. Then found to be Ubunbu 14.04 not so high version. But there was a wave of learning during the search.

1. See which JDK versions are available in the APT library:

Apt-cache Search
Find packages, similar to Rpm-qa|grep package_name

| pipe character

grep Lookup Command

2. Discovery of up to 7 versions of

sudo apt-get install OPENJDK-7-JDK

-----Split Line-----

Halfway through the detour, directly record what you learned:

Add Add Ppa:sudo add-apt-repository Ppa:webupd8team/java

Delete Ppa:sudo add-apt-repository--remove Ppa:webupd8team/java

Reference: http://vvxyz.blog.51cto.com/809437/1642258

Http://askubuntu.com/questions/307/how-can-ppas-be-removed

Installing Java under Linux

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.