findjars

本程序的功能是查找应用加载的所有jar包

测试中,尚不能保证准确性和完整性(Ext和Bootstrap类加载器加载的类/jar都没有列出来)

wanghui@ALIBABA-55971:~/workspace/findjars$ $JAVA_HOME/bin/java -Xbootclasspath/a:$JAVA_HOME/lib/tools.jar -jar /home/wanghui/workspace/findjars/dist/findjars-agent-1.0.jar 32016
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.order-1.1.5.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/nonda.core-0.1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.supplier-1.1.6.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/org.eclipse.equinox-ds-1.0.0.v20080427.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.lib-1.4.9.3.jar.plugin
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/spring-2.0.7.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/jsp-api.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tbremoting.invoke.sync-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/sourceforge.ibatis-2.3.4.726-patch.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.commons.fileupload-1.2.1.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/cglib.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/catalina-ha.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/commons-pool-1.3.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/annotations-api.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/config-common-2.0.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/whalin.memcached-0.0.0.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/log4j-1.2.16.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.route.random-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/xml.xpp3-1.1.4c.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/config-client-1.6.0.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/slf4j-log4j12-1.4.3.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/tomcat-api.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.poi-3.6.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/jaket-0.2.6.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/webx3.core-3.0.6.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/commons-httpclient-3.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/fasttext-sec-1.3.26.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/common.search-1.0.15.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/org.slf4j.jcl104-over-slf4j-1.5.6.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tbremoting.invoke.reliable-1.4.9.3.jar.plugin
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/jedis-2.0.0.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/log4j-1.2.14.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/sourceforge.aopalliance-0.0.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/org.eclipse.equinox-util-1.0.0.v20080414.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/lib/hsf.container-1.4.9.3.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/commons-codec.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/searchad.searchengine-2.5-20130109.113728-51.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/toolkit.common.logging-1.0.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/jasper.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.wl.remoteservice-1.3.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/top-mapping-2.0.5.10.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/commons-logging-1.1.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/catalina.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tbremoting.invoke.oneway-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/misc.aspectj-1.6.5.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/commons-httpclient.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/common.share-1.2.8.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/lporder.biz.order-1.0.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/logstat-common-1.1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.commons.collections-3.2.1.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/logstat-client-1.1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/sourceforge.spring-2.5.6.SEC02.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/commons-lang-2.3.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.oro-2.0.8.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/toolkit.common.lang-1.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/lib/org.eclipse.osgi-framework-3.4.2.R34x_v20080826.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/network.core-1.2.9.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.notify.spring-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.inventory-1.0.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/sourceforge.spring.modules.webmvc-2.5.6.SEC02.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/org.slf4j.slf4j-api-1.5.11.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/napoli.normandy-1.5.9.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.commons.jexl-1.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/apache.geronimo.jms-1.1.1.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/4/1/.cp/gecko-1.1.2.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.address-1.4.9.3.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tbremoting.invoke.future-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/headquarters.biz.cache-1.4-20121115.105051-8.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.routeruleparser.groovy-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/misc.aspectj__aspectjweaver-1.6.5.jar-1.6.5.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.process-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/fasttext-css-1.3.26.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/xercesImpl.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/dubbo.rpc-2.5.2.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/napoli.common-1.5.9.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/napoli.client-1.5.9.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/lporder.web.home-1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jakarta.velocity-1.6.4.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/tomcat-util.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/common.cache-1.0.0.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/el-api.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/webx3.extension.rpc-0.2.4-1.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/org.eclipse.osgi-services-3.1.200.v20071203.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/dom4j-1.6.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/normandy.client-1.0.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/network.core-1.2.9.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/normandy.common-1.0.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/toolkit.service.framework-1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/fasttext-utils-1.3.26.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/servlet-api.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.services-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.scmorder-1.1.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.info-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/misc.javassist-3.9.0.GA.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/web.webx.extension-1.0.0.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/taobao-tomcat-deployer-1.0.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tbremoting.invoke.callback-1.4.9.3.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.rpc.common-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/napoli.dragoon-1.5.9.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/eagleeye-core-1.1.4.jar
file:/home/wanghui/apps/tomcat-7.0.26/bin/bootstrap.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.purchase-1.0.3.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/23/1/.cp/groovy-all-1.1-rc-1.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/commons-codec-1.2.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/druid-0.2.8.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.config-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/headquarters.capsule-2.5-20120711.041905-10.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.product-1.3.2.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/oracle.berkeleydb-3.2.76-patch.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/gson-2.1.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/diamond-client-2.0.5.5.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.app.spring-1.4.9.3.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.grouping-1.4.9.3.jar.plugin
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/org.eclipse.equinox-log-1.1.0.v20080414.jar.plugin
file:/home/wanghui/workspace/findjars/dist/findjars-agent-1.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.tps-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/jboss.jboss-netty-3.2.5.Final.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/commons-lang-2.4.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/common.permission-1.3.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/dubbo.remoting-2.5.2.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/tomcat-coyote.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/lporder.biz.common-1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/nonda.databind-0.1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/headquarters.biz.common-1.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.distribution-1.0.2.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.monitor.habo-1.4.9.3.jar.plugin
file:/opt/jdk1.6.0_32/jre/lib/ext/sunjce_provider.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/org.slf4j.slf4j-log4j12-1.5.11.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/common-monitor-1.1.0.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/mina-core-1.1.5.bugfix-SNAPSHOT.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/lporder.web.order-1.0.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/diamond-utils-2.0.5.5.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/biz.user-1.3.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/cat.client-2.0.5.jar
file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/commons-logging-1.1.1.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/hessian-3.0.14.bugfix.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/fastjson-1.1.9.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/diamond-client-2.0.5.5.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.rpc.tbremoting-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/pilot-1.0-SNAPSHOT.jar
file:/home/wanghui/apps/tomcat-7.0.26/bin/tomcat-juli.jar
file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/slf4j-api-1.4.3.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/nonda.validation-0.1.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.stableswitch-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/dragoon-common-2.7.1.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/nonda.databind-webx3-0.1.0.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.routeruleparser.methodname-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/common-monitor-1.0.7.jar
file:/home/wanghui/.myjboss/deploy/taobao-hsf.sar/plugins/hsf.service.metadata-1.4.9.3.jar.plugin
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/diamond-utils-2.0.5.5.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/nonda.validation-webx3-0.1.0.jar
file:/home/wanghui/web-deploy/lporder.war/WEB-INF/lib/dubbo.hessian.lite-3.2.1.osgi_03.jar

wanghui@ALIBABA-55971:~/workspace/findjars$ $JAVA_HOME/bin/java -Xbootclasspath/a:$JAVA_HOME/lib/tools.jar -jar /home/wanghui/workspace/findjars/dist/findjars-agent-1.0.jar 32016 -class org.apache.log4j.FileAppender file:/home/wanghui/apps/tomcat-7.0.26/lib/shared/log4j-1.2.16.jar file:/home/wanghui/hsf.configuration/org.eclipse.osgi/bundles/21/1/.cp/log4j-1.2.14.jar