I want to analyze the code (or strings) of a jar file (example: if a jar file contains "cheese"), I searched a lot but I don't know how to do this :/ I don't want to use JD-GUI because my program have to be automatic (user press a button and then he have to know if a jar file contains a specific method (for example "public void onEnable()" or a string (for example "cheese"))
I searched and I found:
analyze jar file programmatically
Extract source code from .jar file
https://tomassetti.me/getting-started-with-javaparser-analyzing-java-code-programmatically/
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javap.html