java.io.IOException: invalid header field name: Main-Class

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807598, 1 year ago
invalid header field name: Main-Class
via java-forums.org by Unknown author, 1 year ago
invalid header field name: Main-Class
via Oracle Community by 807598, 1 year ago
invalid header field name: �╗┐Main-Class
via Oracle Community by 843802, 1 year ago
invalid header field name: Main-Class
via Coderanch by Abigail Decan, 1 year ago
invalid header field name: ?≫?Codebase
via Coderanch by Anshuman Chakraborty, 1 year ago
invalid header field name: Manifest-Version
java.io.IOException: invalid header field name: Main-Class
at java.util.jar.Attributes.read(Attributes.java:416)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.