By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,779 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,779 IT Pros & Developers. It's quick & easy.

jar command error

P: n/a
hi,

i'm running jar with a manifest.txt file

jar cvfm welcome.jar manifest.txt welcome.class welcomeback.class

and i get :
jar cvfm Welcome.jar manifest.txt Welcome.class WelcomeBack.class

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)

does anyone know what i'm doing wrong.

- thanks for any comments.
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Nick wrote:
hi,

i'm running jar with a manifest.txt file

jar cvfm welcome.jar manifest.txt welcome.class welcomeback.class

and i get :

jar cvfm Welcome.jar manifest.txt Welcome.class WelcomeBack.class


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)

does anyone know what i'm doing wrong.


Post the contents of manifest.txt. It looks like the problem might be
in there.

Ray

--
XML is the programmer's duct tape.
Jul 17 '05 #2

P: n/a
Hi,
this is my manifest file:

MIDlet-Name:Welcome Examples
MIDlet-Version: 1.0
MIDlet-Vendor: Core J2ME Technology
MIDlet-1: Example1,/spin.png, Welcome
MIDlet-2: Example2, /spin.png, WelcomeBack
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0
- thanks.

"Raymond DeCampo" <rd******@spam.twcny.spam.rr.spam.com.spam> wrote in
message news:pp*******************@twister.nyroc.rr.com...
Nick wrote:
hi,

i'm running jar with a manifest.txt file

jar cvfm welcome.jar manifest.txt welcome.class welcomeback.class

and i get :

jar cvfm Welcome.jar manifest.txt Welcome.class WelcomeBack.class


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)

does anyone know what i'm doing wrong.


Post the contents of manifest.txt. It looks like the problem might be
in there.

Ray

--
XML is the programmer's duct tape.

Jul 17 '05 #3

P: n/a
Nick wrote:
Hi,
this is my manifest file:

MIDlet-Name:Welcome Examples
MIDlet-Version: 1.0
MIDlet-Vendor: Core J2ME Technology
MIDlet-1: Example1,/spin.png, Welcome
MIDlet-2: Example2, /spin.png, WelcomeBack
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0


With the caveat that I don't know anything about MIDlets, I would be
suspicious of the first line. It seems to be missing the space between
the : and the data.

HTH,
Ray

--
XML is the programmer's duct tape.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.