A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
subject: Jar command
WA #1.....word association
packaging final application
Getting an exception in Hibernate as I try to integrate Struts2 and Hibernate3
how can we make a jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014