摘要: 当我们由于某种需要需要的得到jar的路径是可以用下面的方式来获得: basePath = new Solution().getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); basePath = URLDecoder.decode(basePath,"utf-8"); System.out.println("basePaht:"+basePath); if(basePath.endsWith(".jar")){ ... 阅读全文
posted @ 2013-06-29 19:16 华电岳黎明 阅读(8069) 评论(0) 推荐(0) 编辑