what is java.io.IOException: invalid header field?

后端 未结 5 764
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 04:14

When i try to run the following command :

jar cvfm myjar.jar manifest.txt *.class

I get the following exceptions :

java.io.         


        
5条回答
  •  星月不相逢
    2021-01-18 04:16

    Check that your manifest.txt file contains the content in this manner :

    Main-Class: <"package-name">.<"Main-class-name">.class <"newline">

    Note that newline/carriage-return is necessary for parsing.

    Refer to this link http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html

提交回复
热议问题