关闭

ubuntu中安装jdk,,记录一下

标签: ubuntu 中jdk 安装ubuntu
749人阅读 评论(0) 收藏 举报
分类:

在android 的官网看到的。androd 官网 

Installing the JDK


The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

Java 5: for Froyo and older

$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
$ sudo add-apt-repository "deb http:/Java 6: for Gingerbread and newer/archive.ubuntu.com/ubuntu hardy-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk

Note: The lunch command in the build step will ensure that the Sun JDK isused instead of any previously installed JDK.


0
1

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:39912次
    • 积分:910
    • 等级:
    • 排名:千里之外
    • 原创:47篇
    • 转载:7篇
    • 译文:0篇
    • 评论:10条
    最新评论