printing java command for comparison