fixed jre compatibility problem.