Listing classes in a jar file

前端 未结 5 986
感动是毒
感动是毒 2021-02-14 01:20

How can I dynamically load a jar file and list classes which is in it?

5条回答
  •  醉话见心
    2021-02-14 02:05

    Have a look at the classes in the package java.util.jar. You can find examples of how to list the files inside the JAR on the web, here's an example. (Also note the links at the bottom of that page, there are many more examples that show you how to work with JAR files).

提交回复
热议问题