以下代码可以在运行时获取Java Class的磁盘路径:
<YOUR CLASS>.class.getProtectionDomain().getCodeSource().getLocation()
<YOUR CLASS>.class.getProtectionDomain().getCodeSource().getLocation()