怎么样动态地找到当前类是从哪里装载到的? Leave a Comment / Java / July 16, 2009 July 16, 2009 打印 object.getClass().getResource(" /com/…/thisclassname.class").toString() 即可 如:jar:file:/H:/website/WEB-INF/lib/saaj-impl-1.3.2.jar!/com/sun/xml/messaging/saaj/soap/ver1_1/