0% found this document useful (0 votes)
31 views4 pages

Unpacking WAR Files on Mac

good

Uploaded by

vijay akula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

Unpacking WAR Files on Mac

good

Uploaded by

vijay akula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

how unpack war file in mac

http://obscuredclarity.blogspot.com/2009/11/unpack-java-war-file-on-mac-ox-s.html

Did this blog help you solve a problem? Tip me with Bitcoins at: 17dQktcAmU4urXz7tGk2sbuiCqykm3WLs6
Wednesday, November 11, 2009

Unpack a Java .war file on Mac OX S


Unpacking Java .war file on a Mac is not hard at all. For this demonstration, I'll use the sample.war file
that comes with the Tomcat Installation.

Step 1: Fire up the terminal

Step 2: cd to the directory where the .war resides. In this case I moved it from the
Tomcat directories to /sample beforehand.
# cd /sample

Step 3: Unpack the .war with the following command:


# jar -xvf sample.war

The contents of the .war are unpacked for you and placed in the same folder as the .war
file.

Piece of Cake!!
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
at 5:29 PM
Labels: Mac
1 comment:

Anonymous said...
Very helpful, thank you!
February 10, 2012 at 7:33 PM

Post a Comment

how to create a war file on mac

http://www.michael1e.com/create-war-file-in-command-prompt/

Michael Le
My Personal Website and Blog

Create .WAR file in Command


Prompt
August 27, 2012 — 3 Comments
To compress a “michael” web application into a web archive file named
michael.war. Follow these steps.

Prerequisites

 J2SE installed, with jar in your environment path.


1. Open the command prompt and cd to your directory that you want
to archive.

<tomcat_home>\webapps\michael
2. Use the Java Archive Command “jar” to bundle up the application

jar -cvf michael.war *

3. After finishing, you will see a michael.war file in that directory.

Related

Jar is not recognizedAugust 27, 2012In "post"

Stop User/Password Prompt When Pushing to GitHubJune 19, 2012In "post"

OS X: Unable to execute clang: No such file or directory SolutionJune 1, 2013In


"post"

In post java, war

Mike
Posts Website Twitter Facebook Google+
My name is Michael Le, and I am a web developer.

 Jar is not recognized

 jQuery Clicking Div Within Div

3 responses to Create .WAR file in Command


Prompt

1.
MAK August 31, 2013 at 3:02 pm

man i did this and my tomcat stopped working


GR*!!

Reply

2.

Alex September 18, 2013 at 7:26 am

try this…
jar -cvf “michael.war” *

Reply

You might also like