Yesterday, the system crashed, the previous software has been missing, so here all the software is listed here, in the future after the accident, it is convenient.
Currently, the Java source for Ubuntu11.04 has not been updated and cannot be installed through "official". We can install Java via the "JDK Updater" script.
#1
#通过Ubuntu10.10 Related software Libraries install Java (JRE/JDK and Java plug-ins) in Ubuntu11.04
#按住ALT +f2 key combination, enter
Gksu/usr/bin/software-properties-gtk
#然后在 "Other software"-"add" the following:
Deb Http://archive.canonical.com/ubuntu Maverick Partner
#现在, update the software source and search for "sun JRE" in the Ubuntu Software Center (if the Java JDK is installed, search for "sun jdk").
#若安装Java JRE and Java plugin, run the following command:
sudo apt-get install Sun-java6-jre sun-java6-plugin
#安装JDK, the command is run:
sudo apt-get install SUN-JAVA6-JDK
#2
Install Java in #通过PPA在Ubuntu11.04
#另一种方法在Ubuntu11.04 To install Java, that is, to add a PPA. Open the terminal and enter the command:
sudo add-apt-repository Ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install Sun-java6-jre sun-java6-plugin
#安装JDK, the command is run:
sudo apt-get install SUN-JAVA6-JDK