define java versions feature
basic impl for java version feature