摘要: 转自:http://blog.csdn.net/hpf911/article/details/5852127java获取当前项目路径:object.class.getResource()方法获得当前生成的class的绝对路径(此方法在jar包中无效,因为他获得的是生成的class的路径,返回的内容最后包含/)[c-sharp] view plaincopyprint?//当前的类名就是:GetFilePath publicstaticStringgetFilePath(StringfileName){Stringpath=GetFilePath.class.getResource(" 阅读全文
posted @ 2014-02-21 11:33 miss you 阅读(1610) 评论(0) 推荐(0) 编辑