update to later Java-detection in Autotools
update to later Java-detection in Autotools