Ubuntu10.04 has removed the sun-java6-jdk and sun-java6-jre package, ubuntu official statement: it is recommended to install the openjdk-6 to replace the sun-java6-jre, But if you cannot switch to the openjdk-6, you can continue to use the sun-java6-jre. The younger brother is not very familiar with java, But it is said that there are many differences between openjdk and sun-jdk. Installation Method: 1. Edit the source list:
Ubuntu 10.04 has removed the sun-java6-jdk and sun-java6-jre packages, ubuntu official statement: it is recommended to install openjdk-6 to replace the sun-java6-jre, But if you cannot switch to the openjdk-6, you can continue to use the sun-java6-jre. The younger brother is not very familiar with java, But it is said that there are many differences between openjdk and sun-jdk.
Installation Method:
1. Edit the source list :~ $ Sudo vim/etc/apt/sources. list, and add the last line:
Deb http://archive.canonical.com/lucid partner
2. Update :~ $ Sudo apt-get update
3. install java :~ $ Sudo apt-get install sun-java6-jre
Install jdk directly if necessary :~ $ Sudo apt-get install sun-java6-jdk