Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jar file trouble  RSS feed

 
sanjay s
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i have made a java file to be used as a bean as mybean.java
in c:\jdk1.3\bin
then i have compiled it
then i have made a manifest file as mybean.mf with the contents
Name:mybean.class
Java-Bean:True
in the above mentioned directory
then i tried to nake a jar file:
c:\jdk1.3\bin>jar cfm mybean.jar mybean.mf mybean.class
i get the following error
invalid header field
please help.i have not found any material to guide me with what's wrong

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sanjay s",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Campbell Hore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanjay,
Have you tried Sun's Java Tutorial - it includes a "trail" on JAR files?
http://java.sun.com/docs/books/tutorial/jar/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!