Complile java classes with run_cmd.