This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi I know how to use the jar utility to unjar a jar file.But I am facing problem with destination where to place the unjarred files.In my project I need to unjar a jar file and place it in a specified directory not in the same directory.
Thanks in Advance... [ April 27, 2007: Message edited by: Naveen Koneti ]
You just have to go at it a little backwards. Invoke the JAR utility in the directory you want to extract the files in, rather that the location of the JAR file itself. For instance, if you want to extract into the some/other/dir directory, change to that directory first: (cd some/other dir || dir some\other\dir ), and then call jar -xvf ../../../myjarfile.jar
Hope that helps!
Life is good on the Ponderosa,<br />but mind where you step.