Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Final Packaging  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Final Packaging  "scjda-srXXXXXXX.jar" question!" Watch "Final Packaging  "scjda-srXXXXXXX.jar" question!" New topic
Author

Final Packaging "scjda-srXXXXXXX.jar" question!

james bonds
Greenhorn

Joined: Feb 19, 2007
Posts: 9
My scjda-srxxxxxxx.jar structure :




Meta-inf folder was generated automatically by "jar cvf scjda~~.jar ."

Is this correct ?

But, if uses "jar cvfM option , META-INF folder is not generated.



Which one is corect ?


[ February 19, 2007: Message edited by: james bonds ]
Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
Yes, this is very very very natural and healthy thing.
I have submitted my jar file in the very same structure you mentioned,
but did not get an automatic failure.


SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
Life is the biggest school
james bonds
Greenhorn

Joined: Feb 19, 2007
Posts: 9
Did you use M option when made a jar? or not ?

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
jar - cf
james bonds
Greenhorn

Joined: Feb 19, 2007
Posts: 9
OK, Thanks

Did somebody used M option?
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
The executable JAR containing the programs. This must be called runme.jar


my assignment says file name should be runme.jar

java -jar <runme.jar> [alone|server|client]


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Final Packaging "scjda-srXXXXXXX.jar" question!
 
Similar Threads
Deployment of helloWorld bean in Weblogic7.0
META-INF?
creating a ear file around a war file
no such file or directory. added manifest.
Packaging assignment jar...