Fixed java runner, refactored compile function usage
Merge pull request #74 from azhao12345/master

Fixed java runner, refactored compile function usage