Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> cannot install sun-java6-jdk

cannot install sun-java6-jdk

編輯:關於Android編程

On google's page "Initializing a Build Environment"

I got this to install sun-java6-jdk, cause I have to compile android 4.0, and open-jdk cannot help me
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
However, when I execute the lines above, I still cannot install sun-java.

The solutions lies lines below, that is:

$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse"
$ sudo apt-get update

and then

you can
$ sudo apt-get install sun-java6-jdk

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved