Install JDK5 on Ubuntu 10.04
时间:2010-09-09 来源:RayLee
Add the following to /etc/apt/sources.list:
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
Update the package list:
sudo apt-get update
Install Sun Java 1.5:
sudo apt-get install sun-java5-jdk
List all Java versions installed:
sudo update-java-alternatives –l
sudo update-java-alternatives -s java-1.5.0-sun
相关阅读 更多 +