learn java
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

Win a copy of The Software Craftsman this week in the Agile forum!
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 sourceforge.net.
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: 10695

Recommended reading http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WebComponents3.html
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 .

Blog: http://badalchowdhary.wordpress.com/
Twitter: http://twitter.com/badalrocks
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: creating war and ear file from zip file