Ubuntu11.04 install JAVA

Source: Internet
Author: User
Currently, the JAVA source of Ubuntu11.04 has not been updated and cannot be installed officially. We can use the "JDKupdater" script to install JAVA. #1 install Java (JRE/JDK and Java Plug-ins) in Ubuntu11.04 using the Ubuntu10.10 software library and press and hold ALT + F2, enter gksu/usr/bin/software-properties-gtk and

Currently, the JAVA source of Ubuntu 11.04 has not been updated and cannot be installed officially. We can use the JDK updater script to install JAVA.
#1
Install Java (JRE/JDK and Java INS) in Ubuntu 10.10 using the software libraries related to Ubuntu 11.04)

Press and hold ALT + F2 and enter

Gksu/usr/bin/software-properties-gtk

The following content is displayed in "other software"-"add:

Deb http://archive.canonical.com/ubuntu maverick partner

Now, update the software source and search for "sun jre" in the 'ubuntu software Center' (if Java JDK is installed, search for "sun jdk ").

If Java JRE and Java plugin are installed, run the following command:

Sudo apt-get install sun-java6-jre sun-java6-plugin

To install JDK, run the following command:

Sudo apt-get install sun-java6-jdk

#2
Install java in Ubuntu11.04 using PPA

Another method is to install Java in Ubuntu11.04, that is, add PPA. Open the terminal and enter the following command:

Sudo add-apt-repository ppa: ferramrobert to/java
Sudo apt-get update
Sudo apt-get install sun-java6-jre sun-java6-plugin

To install JDK, run the following command:

Sudo apt-get install sun-java6-jdk

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.