Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

sonalisharma sharma

Greenhorn
+ Follow
since May 06, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sonalisharma sharma

I am trying to create a jar file containing EJB Home,EJB remote,EJB bean,client files and deployment descriptor.My EJB Home,remote and bean classes are in C:\EJB and my client classes and deployment descriptor are in C:\EJBClient.These folder contains both java and classs files.Now to jar these files I am issuing following command :
C:\>jar cfm test.jar EJB\*.java EJBClient\*.java EJB\ejb-jar.xml
then it gives following error:
java.io.IOException:invalid header field
at java.util.jar.Attributes.read(Attributes.java:383)
at java.util.jar.Manifest.read(Manifest.java:167)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run.(Main.java:124)
at sun.tools.jar.Main.run.(Main.java:904)
Please tell me whats wrong with the syntax.