max problem for java versions