Skip to main content

Posts

Showing posts with the label install sun java 6

Ubuntu : Install Sun java 6

Ubuntu has dropped including Sun/Oracle Java in its repository, and added OpenJDK. But, the former is more reliable than latter, and is also must for some applications. Here is a way to add Sun java 6: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java6-installer Possible error : "couldn't connect to host" To make this version as default: here . If you want to install java 7, instead of last command try sudo apt-get install oracle-java7-installer If you are under proxy network or seen a error like Cannot add PPA: 'ppa:webupd8team/java'. Please check that the PPA name or format is correct. and if you are sure that the PPA is working, the try sudo -E add-apt-repository ppa:webupd8team/java and proceed with remaining commands.

Setting up / Working with Android Source code

1. Install Ubuntu 10.04, as the Android root is built on it. 2. Update the system - Run Update manager and install new packages 3. Update the system settings: Proxy (IF REQUIRED) Adding Repository 4. Install sun java 6 Install java Change the default version . 5. Installing required packages: sudo apt-get install git-core gnupg flex bison gperf build-essential \zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \libxml2-utils xsltproc 6. Upgrade git 7. Installing Repo: mkdir ~/bin PATH=~/bin:$PATH curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo 8. Initialising a Repo client: mkdir WORKING_DIRECTORY cd WORKING_DIRECTORY repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 If any error saying "HTTP request failed", open file "~/bin/...