Initial Java HDP code