Think before you speak, read before you think.

ubuntu安装jdk7

by

in

第一步:添加JDK7的源

# Step 1: Add the repository for JDK 7.

sudo apt-add-repository ppa:webupd8team/java

第二步:更新

# Step 2: Update

sudo apt-get update

第三步:安装JDK及附加组件

# Step 3: Install JDK and associated utilities

sudo apt-get install oracle-java7-installer

第四步:设置默认编译器

# Step 4: Set the default java interpreter used by the system.

sudo update-alternatives --config java

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *