java - JAR - extracting specific files -


i have .class , .java files in jar archive. there way extract .java files it? i've tried command doesn't work:

jar xf jar-file.jar *.java 

you can use unzip command accepts wildcards in arguments (which not case of jar command). should trick ( disclaimer : not tested)

unzip youfile.jar "*.java" 

Comments

Popular posts from this blog

ruby - How do I merge two hashes into a hash of arrays? -

java - the value of local variable is not used -