The Compiler.java file is in the perfect phaze for testing java strings from php, and outputing error messages or standard output