手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

在Ubuntu 9.10 and 10.04 环境下安装sun-java5-jdk

[日期:2011-04-04] 来源:Linux社区  作者:Linux [字体:大 中 小]

Installing Sun JDK 5 on Ubuntu 9.10 and 10.04

As you known, Sun JDK version 1.5 or 5 is deleted from Ubuntu 10.4 and 9.10 repositories and the version 6 has been replaced.

The easiest way to install Sun JDK 5 version is add its repository from Ubuntu 9.04 to the list of repositories in 9.10 and 10.04. For this purpose, follow the steps.

1- Open /etc/apt/sources.list with a text editor like gedit:

sudo gedit /etc/apt/sources.list

2- Add the following lines to the end of the file then save it and close:

## For sun-Java5-jdk

deb http://ir.archive.ubuntu.com/ubuntu

jaunty-updates main multiverse

3- Update the packages lists and install sun-java5-jdk:

sudo aptitude update

sudo aptitude install sun-java5-jdk

* Above method can be used for other applications.

Another way to install jdk 5 is download software package and its dependencies from packages.ubuntu.com.

linux
相关资讯       Ubuntu教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款