• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Manifest Version Headers Appearing Out Of Order

 
Ned Rolfs
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to learn about the sdk jar utility and going through the oracle tutorial on the subject. I am using jdk1.6.0_24, WindowsXP Pro, and the following directory structure:

manifest.txt
tests\test\TestPackageClass.class

When I get to adding versioning information to the manifest file my resulting manifest appears to display the information out of order. I create the following manifest file with a carriage return on the last line that reads "Implementation-Vendor: Test Vendor":

Name: tests/test/
Specification-Title: Test Classes
Specification-Version: 1.0
Specification-Vendor: Test Vendor
Implementation-Title: tests.test
Implementation-Version: build001
Implementation-Vendor: Test Vendor


I then execute the following command:

"jar cvmf manifest.txt TestPackage.jar tests/test"

Then when I extract and check the META-INF\MANIFEST.MF it reads as follows:


Manifest-Version: 1.0
Implementation-Vendor: Test Vendor
Implementation-Title: tests.test
Implementation-Version: build001
Specification-Vendor: Test Vendor
Name: tests/test/
Created-By: 1.6.0_21 (Sun Microsystems Inc.)
Specification-Title: Test Classes
Specification-Version: 1.0


Can someone tell my why these headers are out of order. Thanks!


 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

The order of attributes in the manifest file doesn't matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic