Java packaging encounters a problem java.io.IOException:invalid header field

Source: Internet
Author: User

problem: Java packaging times the following error$ JAR-CVMF main.txt test.jar shufile1.classjava.io.IOException:invalid Header FieldAt 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:173)At Sun.tools.jar.Main.main (main.java:1231)  Solution:Specify the Manifest.txt of the main () class, except for the last line to add a carriage return, followed by a space after the colon Note: Manifest.txt do not have to call this name, for example, I use the name is called Main.txt, as long as the content format is correct

Java packaging encounters a problem java.io.IOException:invalid header field

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.