Isolate java8 specifics in case latest jdk is not installed.