It's not a secret anymore!*
The moose likes Servlets and the fly likes Help with  .war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help with  .war files" Watch "Help with  .war files" New topic

Help with .war files

Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
Hi guys,
Anybody got an idea to extract contents from .war files like the one's comes with Tomcat. Any utilities/tools available.
Any help greatly appreciated
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Just use jar. Both .war and .ear files are just .jar files with a certain structure (and a .jar file is in turn a .zip file with meta-information added, so if you don't have jar you can simply rename the file to .zip and open it).
- Peter
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
Thanx Peter for your reply. I know the .jar can be opened with any zip utilities. I tried the same thing with .war but no luck.
Even i renamed the .war to zip and tried still luck doesnot seem to turn out my way.

Thanx again

[This message has been edited by Ajan Balakrishnan (edited February 07, 2001).]
It is sorta covered in the JavaRanch Style Guide.
subject: Help with .war files