This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Error Adding a manifest to a jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error Adding a manifest to a jar" Watch "Error Adding a manifest to a jar" New topic
Author

Error Adding a manifest to a jar

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
I really not sure if this question belongs in this forum but thought it probably would. I have the following line in a bat file :

%JAVA_HOME%\bin\jar umvf manifest.txt vjmonitor.jar

When I run the bat file I get the following exception :

java.io.IOException: invalid header field

The manifest file contains :

Main-Class: Monitor

Class-Path: . classes12.zip

Does anyone know what causes this?

Thanks,
Barry
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I guess the dot in the CP is wrong.

If you include your jar, it's in the classpath, so why include it from itself?


http://home.arcor.de/hirnstrom/bewerbung
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Error Adding a manifest to a jar
 
jQuery in Action, 3rd edition