Sample Core java application