在 http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html官网下载jdk
注意:
Linux
Some Linux platforms, such as Red Hat and SuSE, are RPM-based, which provide an automated way to install software. Some Linux distributions, such as Ubuntu, are not RPM-based. For these Linux systems, you must manually install the Java platform by using a self-extracting binary file.
我是ubuntu,所以选择Linux x86 - Self Extracting Installer
然后参考http://www.oracle.com/technetwork/java/javase/install-linux-self-extracting-138783.html
cd <jdkdir>
sudo chmod a+x jdk-6u <version>-linux-i586.bin