• Post Reply Bookmark Topic Watch Topic
  • New Topic

can't create jar file  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
text file:



error message from command line:

C:\Users\xxxx\Desktop\COMP268\applet_ComponentArch_DynamicTreeDemo\applet_Comp
onentArch_DynamicTreeDemo\build\classes>jar -cvfm DynamicTreeDemo.jar mymanifest
.txt appletComponentArch
java.io.IOException: invalid header field name: ?≫?Codebase
at java.util.jar.Attributes.read(Attributes.java:433)
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:172)
at sun.tools.jar.Main.main(Main.java:1177)
[/code]
encoding in UTF-8 and have newline at end
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.IOException: invalid header field name: ?≫?Codebase

What's that strange "?≫?" in front of the name Codebase? It looks like you have some strange character at the beginning of your text file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!