I want to get the the package infomation of a jar file with java code.That is,get all package names,list the classes in each package.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it with java, by opening the jar file, and examining the files inside.
Use the java api class JarFile. I use that method in the static constructor for this class, in a project:
https://sourceforge.net/p/flamethyst/code/64/tree/trunk/source/com/paxinum/flamethyst/function/VariationFactory.java