I wanted to extract one of my jars to specified directory using jar
command line utility.
If I understand this right -C
option should to the trick but when I try
jar xvf myJar.jar -C ./directoryToExtractTo
I am getting usage information from my jar utility, so I am doing something wrong.
Is the thing I want achievable with jar
or do I need to manually move my jar and there invoke
jar xvf myJar.jar
It's better to do this.
Navigate to the folder structure you require
Use the command
jar -xvf 'Path_to_ur_Jar_file'