会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
牧之
Life is not what you have gained but what you have done!
博客园
首页
新随笔
联系
订阅
管理
2016年8月17日
通过 getResources 找不到jar包中的资源和目录的解决方法
摘要: http://my.oschina.net/sub/blog/184074 今天碰到一个怪问题: 原本跑的好好的代码,打成 jar 包就不能运行了。 问题出在,代码中有一段自动扫描 classpath 下面的指定 package 的 class 竟然得到的 dirs 为空??? 打包前直接在 cla
阅读全文
posted @ 2016-08-17 12:35 牧之丨
阅读(1476)
评论(0)
推荐(0)
编辑
公告