Jar is a Java class packaging file, we can package our own project as a jar file execution, can also be packaged as a third-party package to view, sometimes we need to look at a jar file whether there is a class and the corresponding package, we can take the following two ways:
① using the Software
Jd-gui is a cross-platform software. We can easily install on OS X and other systems, then drag the jar file into the Jd-gui to be able to.
② using the Zip tool
The jar package is a zip file that we can extract directly after viewing, here is a simple example.
Yddemacbook-pro:tmp yd$ lsjfxrt.jaryddemacbook-pro:tmp yd$ unzip-x-Q Jfxrt.jar- d jfxrtyddemacbook-pro:tmp YD$ LSJFXRT jfxrt.jaryddemacbook-pro:tmp yd$ cd jfxrtyddemacbook-pro:jfxrt yd$ lsmeta-inf MediaErrors_ Es.properties mediaerrors_ja.properties mediaerrors_sv.properties Classes Netscapemediaerrors.properties mediaerrors_fr.properties mediaerrors_ko.properties MediaErrors_zh_ Cn.properties commediaerrors_de.properties mediaerrors_it.properties mediaerrors_pt_br.properties Mediaerrors_zh_tw.properties JAVAFXYDDEMACBOOK-PRO:JFXRT yd$
using unzip to extract the jar file, the internal files are displayed, but this method is not easy to use Jd-gui.
Many other blogs please go to the little fat Xuan.
Check the jar file under OSX