issue #1048: detect if java8 has already been installed