Avoid judge server crash caused by permission problems and give compile error for java files with package.