Fixed emma error once running over jdk7