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