查看嵌入在jar文件中的.class文件中的方法是否可以 ? [英] To see method in .class file embedded in jar file | is it possible ?

查看:136
本文介绍了查看嵌入在jar文件中的.class文件中的方法是否可以 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jar文件包含这么多* .class文件。我需要在一个类文件中搜索一个方法(我现在只有方法名称)。

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.

有可能吗?

推荐答案

从jar文件中提取类,然后运行

Extract the class from jar file and then run

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

classes.txt 文件将有关于jar里面的类的所有信息。您可以搜索一个方法。

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

这篇关于查看嵌入在jar文件中的.class文件中的方法是否可以 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆