Monday, March 19, 2012

Build indivual package openssl from source tree

Go to your android source folder:
$ source build/envsetup.sh
$ mmm external/openssl/


Install Java Sun 6 on Ubuntu (11.04)

I had some problems installing the official Java from Sun (Oracle) that is needed in order to build Android stuff. Here is how to do it:

go to:
https://launchpad.net/~jason-alioth/+archive/reddit/+build/3229195

Download:
sun-java6-bin_6.26-2natty1_i386.deb
sun-java6-jdk_6.26-2natty1_i386.deb
sun-java6-jre_6.26-2natty1_all.deb
sun-java6-plugin_6.26-2natty1_i386.deb

sudo apt-get install odbcinst1debian2 unixodbc odbcinst
sudo dpkg -i sun-java6-bin_6.26-2natty1_i386.deb sun-java6-jre_6.26-2natty1_all.deb
sudo dpkg -i sun-java6-jdk_6.26-2natty1_i386.deb


sudo update-alternatives --config java
Choose the version you just installed

sudo update-alternatives --config javac
Choose the version you just installed