什么是java.io.IOException:无效的头字段? [英] what is java.io.IOException: invalid header field?

查看:160
本文介绍了什么是java.io.IOException:无效的头字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行以下命令时:

When i try to run the following command :

jar cvfm myjar.jar manifest.txt *.class

我收到以下例外情况:

java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:410)
    at java.util.jar.Manifest.read(Manifest.java:199)
    at java.util.jar.Manifest.<init>(Manifest.java:69)
    at sun.tools.jar.Main.run(Main.java:171)
    at sun.tools.jar.Main.main(Main.java:1176)

我得到这些异常的原因是什么?

What could be the reason i am getting these exceptions ?

推荐答案

我猜你的清单文件有问题。看看你是否有一个标题变量名称的拼写错误。

I'm guessing that there's a problem with your manifest file. Give it a look to see if you've got a typo in the name of a header variable.

这篇关于什么是java.io.IOException:无效的头字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆