Swapnil Swapnil - 2 months ago 15
Java Question

Java Unrecognized option: -xvf

I was trying to extract Java jar file as

java -xvf my.jar but it throws error

Unrecognized option: -xvf
Could not create the Java virtual machine.

Answer

java is the wrong comment for this, and ommit the -. Use jar xvf my.jar