application in building mill trainingsimulators in java