Java Tip: How to extract the content of a Jar File Using Command Prompt

To extract the files from a jar file, use x, as in:

jar xf myFile.jar

To extract only certain files from a jar file, supply their filenames:

jar xf myFile.jar foo bar