Origianal post URL :
http://dev.droidbeans.com/android-kernel-development-tutorial-part-2-setting-the-environment/
Ok, to build android in virtual machine Ubuntu 12.04, both java jdk and jre are needed,
how to install them in Ubuntu 12.04,
Here are the guidance,
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java6-installer
Thank you.