updated to latest jres and changed osx jre name to be constant