if !File.directory?(jar_path)
      raise Treat::Exception, "Looking for #{klass} " +
      "library JAR files in #{jar_path}, but it is " +
      "not a directory. Please set the config option " +
      "Treat.libraries.#{name}.jar_path to a folder " +