在jar文件中列出类 [英] Listing classes in a jar file

查看:88
本文介绍了在jar文件中列出类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何动态加载jar文件并列出其中的类?

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

推荐答案

看看包java.util.jar中的类.您可以找到有关如何在网络上的JAR中列出文件的示例,这里的

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).

这篇关于在jar文件中列出类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆