java - How do I print the class structures in a jar file using the javap tool? -
I want to list methods of class files in jar using javap tool How can I do this so that it list the methods and members of all class files in the jar. Right now I am able to do this for just one class at a time.
I hope if I say something
javap java.lang *
This should list the methods and members of all classes in the java.lang package. If Jawap is not capable of it, then is there any such device available?
#! / Bin / bash # Jar name jar = & lt; Jar Name & gt; # $ (Jar-tf $ jar | grep '.class') #Loop through classes for classes; With DO # replace Class = $ {class // \ //.}; # Javap javap-classpath $ jar $ {class // class}}; Done
Comments
Post a Comment