Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error Adding a manifest to a jar" Watch "Error Adding a manifest to a jar" New topic

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 : invalid header field

The manifest file contains :

Main-Class: Monitor

Class-Path: .

Does anyone know what causes this?

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?
Don't get me started about those stupid light bulbs.
subject: Error Adding a manifest to a jar
It's not a secret anymore!