fixed jre/jdk issues.