fixed java binary check