pud: better detection of java jdk