/** * Strictly verify that windows utils is present. * Checks go as far as opening the file and looking for * the headers. * @throws IOException on any problem reading the file * @throws FileNotFoundException if the file is not considered valid */ public static void maybeVerifyWinUtilsValid() throws IOException, SliderException { String errorText = SliderUtils.checkForRequiredNativeLibraries(); if (!errorText.isEmpty()) { throw new BadClusterStateException(errorText); } }
/** * Strictly verify that windows utils is present. * Checks go as far as opening the file and looking for * the headers. * @throws IOException on any problem reading the file * @throws FileNotFoundException if the file is not considered valid */ public static void maybeVerifyWinUtilsValid() throws IOException, SliderException { String errorText = SliderUtils.checkForRequiredNativeLibraries(); if (!errorText.isEmpty()) { throw new BadClusterStateException(errorText); } }