Thursday, December 24, 2009

Android Dev on Ubuntu 9.10

Per-install

  1. Java 1.5.0 in Ubuntu 9.10
    1. go to http://java.sun.com/javase/downloads/index_jdk5.jsp download  JDK 5 update 22, this product is no longer officially supported, so need to submit a form and download from the link they send it to your email.
    2. the file downloaded will be xxxx.rpm.bin
    3. get rpm if you don’t have it, sudo apt-get install rpm
    4. then run the bin file (./)
    5. rmp –i xxxxx.rpm  --orce-debian –nodeps
    6. sudo update-alternatives --install /usr/bin/java java/usr/java/jdk1.5.0_22/bin/java 50
    7. sudo update-alternatives --install /usr/bin/javac javac/usr/java/jdk1.5.0_22/bin/javac 50
    8. sudo apt-get install git-core gnupg flex bison gperf build-essential zipcurl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
  2. other part follow http://source.android.com/download
    1. remember to add PATH=$PATH:$HOME/bin before run repo command
    2. export  PATH=$PATH:$HOME/bin
    3. export JAVA_HOME/bin:$PATH

post install

  1. eclipse IDE http://source.android.com/using-eclipse

No comments: