An example of how to built and run a XGBoost model using Java. Here is a link with the complete explanation.