Use OpenJDK 8,7 or 6 in that order if they exist.