您的位置:首页 > 编程语言 > Java开发

Ubuntu 10.10 LTS安装JDK出错解决

2012-04-08 15:11 357 查看
    编译android,要先安装JDK 1.6,可按照source.android.com的如下步骤还是安装不上:


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.

Java 6: for Gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

    可通过如下方式解决:

    sudo apt-get install python-software-properties 

    sudo add-apt-repository ppa:sun-java-community-team/sun-java6 

    sudo apt-get update 

    sudo apt-get install sun-java6-jdk

    参考链接:1. http://source.android.com/source/initializing.html

                             2. http://www.eoeandroid.com/thread-159878-1-1.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息