how to get the package infomation of a jar file
I want to get the the pac开发者_StackOverflowkage infomation of a jar file with java code.That is,get all package names,list the classes in each package.
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
check the below link , it will help you class and packeage details
精彩评论