File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes creating war and ear file from zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "creating war and ear file from zip file" Watch "creating war and ear file from zip file" New topic

creating war and ear file from zip file

Dipti Mogare

Joined: Jan 17, 2012
Posts: 9
I have built the java enterprise project called dcm4chee from its source code. I have used source-code from
But after building the project i got zip file as output. I have to create war and ear file from that zip file.
I have searched on google. Just changing .zip extension to .war is not working.
So please give me the solution for this.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10815

Recommended reading
Or use ant

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Badal Chowdhary
Ranch Hand

Joined: Apr 26, 2011
Posts: 34

For creating a war file, you can go to the dir that contains WEB-INF dir. WEB-INF dir should have classes, lib and web.xml file. Run the below command from parent dir of WEB-INF dir:
jar cvf myapp.war .

I agree. Here's the link:
subject: creating war and ear file from zip file
It's not a secret anymore!