Get Java examples working