public static void checkJavaVersion() throws ClientException {
  final String version=System.getProperty("java.specification.version");
  if (Float.valueOf(version) < CliConstants.MINIMUM_JAVA_VERSION) {
    final String javaBin=System.getProperty("java.home") + File.separator + "bin"+ File.separator+ "java";
    throw new ClientException(ReturnCode.JAVA_VERSION_INCOMPATIBLE,ERR_INCOMPATIBLE_JAVA_VERSION.get(CliConstants.MINIMUM_JAVA_VERSION,version,javaBin),null);
  }
}

public static void checkJavaVersion ( ) throws ClientException { final String version = System . getProperty ( "java.specification.version" ) ; if ( Float . valueOf ( version ) < CliConstants . MINIMUM_JAVA_VERSION ) { final String javaBin = System . getProperty ( "java.home" ) + File . separator + "bin" + File . separator + "java" ; throw new ClientException ( ReturnCode . JAVA_VERSION_INCOMPATIBLE , ERR_INCOMPATIBLE_JAVA_VERSION . get ( CliConstants . MINIMUM_JAVA_VERSION , version , javaBin ) , null ) ; } }
checks the java version .
