How to open .jar file in linux

how to open .jar file in linux.
Jar file is basically zip file, to see the content of .jar file we can use this command :
1. unzip jarfile.jar
2. jar xf jar-file
you can choose one between two options above to open .jar file in linux