Results 1 to 2 of 2
  1. #1
    osval is offline Member
    Join Date
    Jul 2007
    Posts
    26
    Rep Power
    0

    Default java.io.IOException: invalid header field

    I've created a manifest file for javabean and I'm trying to
    include it in the jar with the jar option , but I'm
    getting the following Exception.
    Java Code:
    c:\java\example>jar cfm ch.jar c1.mft
    
    java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:387)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    any ideas?
    thanks

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    Try rearranging the options:

    jar -cf ch.jar -m MANIFEST.MF

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2008, 10:01 AM
  2. Getting Header Info
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-26-2007, 02:30 PM
  3. Variable passing, Error: IOException
    By fernando in forum New To Java
    Replies: 3
    Last Post: 07-31-2007, 03:03 PM
  4. Replies: 2
    Last Post: 07-30-2007, 09:55 AM
  5. header of jtable
    By bbq in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 05:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •