oracle jdk packaged differently adjust script code accordingly