Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help: Manifest file

9 views
Skip to first unread message

Ray Little

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
When I try to update a jar file (d:\>jar ufm swbMain.mf SWBilling.jar) with
a manifest files I get the error:
- - - - - - - - - - - - - - - -
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:354)
at java.util.jar.Manifest.read(Manifest.java:161)
at java.util.jar.Mainfest.<init>(Mainfest.java:56)
at sun.tools.jar.Main.update(Main.java:487)
at sun.tools.jar.Main.run(Main.java:168)
at sun.tools.jar.Main.main(Main.java:904)
- - - - - - - - - - - - - - - -

My manifest file, swbMain.mf, is a text file containing two lines:
- - - - - - - - - - - - - - - -
Main-Class: SWBilling

- - - - - - - - - - - - - - - -
(the last line is blank)

What am I missing?

FYI - I'm using jdk1.3 under Windows NT 4.0 SP6

TIA,
Ray

Kevin Riff

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
IIRC, the manifest filename and the jar filename should be presented in the
same order as the "f" and "m" command line switches. Try writing "jar umf ...".

Dale King

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
Which of course is not documented. I've been meaning to submit that as a
bug, but haven't gotten around to it.


--
--- Dale King
Resume: http://www.cs.iupui.edu/~dking/resume.htm
Recruiters: I am currently not willing to relocate!

Ray Little

unread,
Aug 10, 2000, 3:00:00 AM8/10/00
to
Thanks Kevin and Dale.

I hope you guys write this up. It should either be documented or corrected.
Although in my opinion they should set a standard extension for manifest
files (I use .mf).

Ray
"Dale King" <Ki...@TCE.com> wrote in message
news:3991DF4E...@TCE.com...

Dale King

unread,
Aug 10, 2000, 3:00:00 AM8/10/00
to
I looked it up and it was already entered as bug 4103097 and fixed.
Unfortunately, the fix was simply to document that this is how it works
instead of actually requiring one order. At one time if you got it wrong
you could actually overwrite your manifest file! To do that know would
require that the file you specify as the jar would have to be a valid
manifest file.
0 new messages