To see method in .class file embedded in jar file | is it possible ?

后端 未结 4 2234
不知归路
不知归路 2021-02-14 05:04

I have a jar file containing so many *.class files. I need to SEARCH one method (i just have the method name alone with me now) in which class file.

Is it possible ?

4条回答
  •  别那么骄傲
    2021-02-14 05:45

    Extract the class from jar file and then run

    unzip Classes.jar
    find . -name '*.class' | xargs javap -p > classes.txt
    

    The classes.txt file will have all information about the classes inside jar. You can search it for a method.

提交回复
热议问题