File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

creating war and ear file from zip file

Dipti Mogare
Greenhorn

Joined: Jan 17, 2012
Posts: 9
Hi,
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: 9990
    
    7

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating war and ear file from zip file
 
Similar Threads
packaged war in ear project (Websphere RAD7)
is it possible in eclipse question for author B Dudney
Can't Load Oracle JDBC Connection Pool Driver
Maven Build Script Problem
EAR not getting deployed with RAD 7.0 and Websphere 6.1