[AMC] Added java version setting to java 1.8