ITeye博客

获取类所引用的jar包

listen-raining · 2014-09-04 11:35 · Java · 编程语言 · Markdown

System.out.println("HWPFDocument类引用的jar包:"+HWPFDocument.class.getProtectionDomain().getCodeSource().getLocation()); System.out.println("Range类引用的jar包:"+Range.class.getProtectionDomain().getCodeSource().getLocation());

打印: HWPFDocument类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar Range类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。