ubuntu 安装 java 环境

本人安装的是oracle java6


1. 下载jre

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jre-6u45-linux-x64.bin

2. 下载jdk

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin

3. install

参见 http://askubuntu.com/questions/67909/how-do-i-install-oracle-jdk-6

你可能感兴趣的:(ubuntu)