1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > c 获得java数据 获得jar中数据 获得jar数据 // example c

c 获得java数据 获得jar中数据 获得jar数据 // example c

时间:2022-08-14 19:56:36

相关推荐

c 获得java数据 获得jar中数据 获得jar数据 // example c

获得jar中数据,获得jar数据,// example c// example code of access data using getResource() public static File getDefalutPath() { if(defalutPath == null) { String defPath = System.getProperty("mmseg.dic.path"); log.info("look up in mmseg.dic.path="+defPath); if(defPath == null) { URL url = Dictionary.class.getClassLoader().getResource("data"); if(url != null) { defPath = url.getFile(); log.info("look up in classpath="+defPath); } else { defPath = System.getProperty("user.dir")+"/data"; log.info("look up in user.dir="+defPath); } } defalutPath = new File(defPath); if(!defalutPath.exists()) { log.warning("defalut dic path="+defalutPath+" not exist"); } } return defalutPath; }

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。