How do I print the class structures in a jar file using the javap tool?

后端 未结 3 2099
暖寄归人
暖寄归人 2020-12-28 16:14

I want to list the methods of the class files in the jar using the javap tool. How do I do it so that it lists the methods and members of all the class files in the jar. Rig

3条回答
  •  太阳男子
    2020-12-28 16:42

    Even easier would be

    JAR= \
    javap -classpath $JAR $(jar -tf $JAR | grep "class$" | sed s/\.class$//)
    

提交回复
热议问题