| | |
Manifest file for executable jar
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2006
Posts: 9
Reputation:
Solved Threads: 1
I have been trying to create an excutable jar file. When trying to added new data to the manifest file it give me an error say 'invalid header field name: |||Manifest-Version:'. Iam using the command line:
jar -cfm App.jar META-INF\MANIFEST.MF mainui\*.class
the mainfest file looks like this
Manifest-Version: 1.0
Created-By: 1.4.2_13 (Sun Microsystems Inc.)
Main-Class: mainui.MainUI
It encoding is UTF-8. Can anyone see where im going wrong here.
Cheers
Declan.
jar -cfm App.jar META-INF\MANIFEST.MF mainui\*.class
the mainfest file looks like this
Manifest-Version: 1.0
Created-By: 1.4.2_13 (Sun Microsystems Inc.)
Main-Class: mainui.MainUI
It encoding is UTF-8. Can anyone see where im going wrong here.
Cheers
Declan.
I had problem with JAR sometime ago, bellow you find link to my original question and solution to it
LINK
LINK
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Since your error message indicates garbage in front of "Manifest-Version", I assume your file contains garbage there.
Try recreating the manifest file from scratch, do as most people do and use ANT to make it for you
Try recreating the manifest file from scratch, do as most people do and use ANT to make it for you
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Oct 2006
Posts: 9
Reputation:
Solved Threads: 1
Thanks Peter and J, I got it working by not trying to create the manifest file first and using the (M) command, but rather let the jar app create the default one with the cf command, then extract using the xf command, then edit the manifest file and re-create the jar usinf the cfm command, i think maybe the the format UTF-8 that is supplied in notepad is not completely what the jar file is looking for in a manifest file...
Thanks again
Thanks again
![]() |
Similar Threads
- Why my application's Buttons are old fashion? (C#)
- How to include txt into jar file? (Java)
- manifest jar files??? (Java)
- Accessing Images in JAR file (Java)
- Executable program design question.... (Java)
- JarOutputStream (Java)
- Java Manifest File (Java)
Other Threads in the Java Forum
- Previous Thread: store table values into database which are updated dynamically on JSP page
- Next Thread: Incompatible types error
Views: 5056 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application apps arguments array arrays automation binary bluetooth businessintelligence card chat class classes client code collision component crashcourse database draw eclipse ee error event exception file fractal free game gis givemetehcodez graphics gui helpwithhomework html ide image input integer integration j2me java javadoc javafx javaprojects jmf jni jpanel julia jvm linux list loop machine map method methods migrate mobile netbeans newbie nls number object oracle physics print problem program programming project radio recursion scanner screen security server service set size sms socket software sort sql string swing test textfield threads time transfer tree trolltech utility windows






