2010-11-29 63 views

回答

2

這段代碼會給你從它正在執行的系統中的類文件的位置。

this.getClass().getProtectionDomain().getCodeSource().getLocation();