fixes #5260 - added detection for Java