junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/JavaUtils.java
private static int parseJavaVersion() {
		String[] parts = JAVA_SPECIFICATION_VERSION.split("\\.");
		int nbParts = parts.length;
		int majorIndex = nbParts > 1 ? 1 : 0;
		return Integer.parseInt(parts[majorIndex]);
	}
private static int parseJavaVersion() {
		String[] parts = JAVA_SPECIFICATION_VERSION.split("\\.");
		int nbParts = parts.length;
		int majorIndex = nbParts > 1 ? 1 : 0;
		return Integer.parseInt(parts[majorIndex]);
	}
Parse java version.

@return The JAVA Version.