Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Adding a manifest to a jar

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic