public static boolean containsEntry(File file, String entryPath) {
    if (file.canRead()) {
      try {
        try (JarFile jarFile = new JarFile(file)) {
          return jarFile.getEntry(entryPath) != null;
        }
      }
      catch (IOException ignored) { }
    }

    return false;
  }
public static boolean containsEntry(File file, String entryPath)