A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Joined: Dec 23, 2003
Nov 04, 2009 19:49:16
I want to extract a war file into a specific folder, which option I should use ?
This doesn't work : jar xvf my.war -d newFolder
Joined: Sep 11, 2006
Nov 04, 2009 20:23:26
JAR command doesn't have -d option. You may want to use another command, such as unzip, e.g.
unzip my.war -d newFolder
If you insist of using a JAR command, what you can do is to create a shell script that create a directory and move the jar file into that directory and do the extraction from there.
Hope it helps.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
I agree. Here's the link:
subject: Jar command
packaging final application
how can we make a jar file
WA #1.....word association
Getting an exception in Hibernate as I try to integrate Struts2 and Hibernate3
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014