获取当前 jar 包的路径

最开始我是用可以这种方式来获取当前 jar 包的文件的: private static String LOCATION = [MainClass].class.getProtectionDomain()         .getCodeSource().getLocation().getFile(); 可是若是路径中包含中文,就会变成带“%xx%xx”格式的字符串。因此应该这样写才对: priva
相关文章
相关标签/搜索