Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating war and ear file from zip file

 
Dipti Mogare
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Badal Chowdhary
Ranch Hand
Posts: 34
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic