I have Ubuntu 12.10 x64 installed on a virtual device (VMware workstation) on a host system Windows 8. I downloaded android source code. I wanted to build it, and it says:
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported JDK.
You use OpenJDK but only Sun/Oracle JDK is supported.
************************************************************
I tried:
sudo apt-get -y remove --purge openjdk-7-jdk openjdk-7-jre
and I still have OpenJKD 7 installed. How can I uninstall OpenJDK and install a JDK which could build android?