Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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

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?
It is sorta covered in the JavaRanch Style Guide.
subject: Error Adding a manifest to a jar
Similar Threads
How to create executable jar file?
how to take the jxam exam
error in running server- problem with jar file
Classpath - help!
Jar file problem