Hey all
I have to use an external library itext-1.4.5.jar in a program
helloWorld.java.It is located in /usr/share/java
First I had compiled as

$javac -classpath /usr/share/java/itext-1.4.5.jar HelloWorld.java

Then I had created a manifest file manifest.mf as

Manifest-Version: 1.0

Created-By: PreetiC

Main-Class: HelloWorld

Class-Path: /usr/share/java/itext-1.4.5.jar

But on doing
$ jar cmf manifest.mf HelloWorld.jar HelloWorld.class

I got this exception:

java.io.IOException: invalid manifest format
at java.util.jar.Manifest.read(Manifest.java:208)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)

Could someone please tell me what is wrong??