building from ubuntu image and installing java