#apt-get install build-essential
Python 2.7.3 is already installed
If your image have not preinstalled javac,
#apt-get install openjdk-7-jdk
or refer to http://linux-sunxi.org/Oracle_Java for Oracle Java (hint: this page has been deleted due to spam)
is provided here ORACLE Download page for JDK 8 early access
This version for ARM supports hardware floating point unit on ARM V7
look for the Entry "Linux ARMv6/7 VFP, HardFP ABI"
Here is the ORACLE instruction for RaspBerry PI.