Too long line in manifest file while trying to create jar

后端 未结 5 848
北荒
北荒 2021-01-04 02:22

I am getting a too long line error while trying to build a jar. the long line in the manifest file is the Class-Path line as the application uses a lot of third-party libra

5条回答
  •  耶瑟儿~
    2021-01-04 02:35

    The answer of Voodoochild put me on the right track but wasn't so clear to me so quoting the specs:

    No line may be longer than 72 bytes (not characters), in its UTF8-encoded form. If a value would make the initial line longer than this, it should be continued on extra lines (each starting with a single SPACE).

    Manifest example:

    Manifest-Version: 1.0
    Main-Class: com.mypackage.MyApp
    Class-path: commons-beanutils-1.7.0.jar commons-collections-3.1.jar
     commons-dbcp-1.2.2.jar commons-discovery.jar commons-lang-2.1.jar
     commons-pool-1.2.jar ezjcom18.jar jbcl.jar log4j-1.2.14.jar
     sqljdbc.jar torque-3.2-rc2.jar 
    

提交回复
热议问题