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

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -

java - the value of local variable is not used -