I am trying to build android source code in my Linux machine(Ubuntu 12.04 64bit). when I am start building it...i am getting error as follows
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version of java.
Your version is: java version "1.6.0_24". The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
build/core/main.mk:141: *** stop. Stop.
I am able to understand the problem but I don't know how to change my java version because while installing jdk from terminal i am getting "1.6.0_24" version by default. Please do needful. Thanks In advance.