更新时间:2023-11-18 11:47:22
jar tf
将为您列出内容。
javap
将允许您查看类的更多详细信息(请参阅工具指南此处)。
javap
will allow you to see more details of the classes (see the tools guide here).
例如,如果您在一个jar myjar.jar中有一个名为mypkg.HelloWorld的类,则应像这样运行它
For instance if you have a class named mypkg.HelloWorld in a jar myjar.jar then run it like
javap -classpath myjar.jar mypkg.HelloWorld