When you write a program for Android, you use the Oracle Java tools for everything, and at the very end, you push a button and say, Convert this to Android format.
Building Oracle is like doing math puzzles as a kid.