fix java compile version config to java8
use hardcoding for minor optimization