Using ASM how can I know whether the compiled code in jar is using specific packages or classes rather than checking for a specific method in a class
You can create visitors which record all the packages or classes which are used. (Or only check specific ones) There are examples of how to create visitors on the ObjectWeb ASM web site.
Do you have a specific question?