Use JDK6 for Android compatibility.