title: Compile Android source on Ubuntu 12.04 cannot continue because of bad JDK version
body: <p>I've been trying all day to compile the Android source code on my Ubuntu 12.04 64bit OS.</p>
  
  <p>For some reason, I'm stuck on the phase of having the Sun/Oracle JDK 1.6 version installed. I've been trying many commands (and the official link of course) and I end up either having nothing, having JDK 1.7 or OpenJDK, or not having the jdk-tools.</p>
  
  <p>What are the exact steps to successfully compile the code (or part of it) using JDK? I'm stuck at the phase of "make j4" on <a href="http://source.android.com/source/building.html" rel="nofollow">this link</a>.</p>