from pathlib import Path


def get_classpath(application_folder: Path) -> str:
    """
    Returns the Class-Path for the JAR's manifest file. This is determined by
    reading the names of all JAR files in the application folder. A line in a
    manifest file is allowed to have a length of 72 bytes at max.
    """
    items = []
    for item in application_folder.iterdir():
        if item.name == "Fuzzlecheck.jar":
            continue
        items.append(item.name + " ")
    items = sorted(items)

    item_str = "Class-Path: {}".format(" ".join(items))
    rsl = (item_str[0+i:70+i]
           for i in range(0, len(item_str.encode("UTF-8")), 70))
    return "\n ".join(rsl)