aspose file tools*
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 Spring in Action this week in the Spring 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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Adding a manifest to a jar