BS-11778: add max version for Java (so supported version are 1.6.x and
1.7.x)