Eclipse JavaSE项目文件路径问题,eclipsejavase
分享于 点击 9575 次 点评:43
Eclipse JavaSE项目文件路径问题,eclipsejavase
Eclipse 创建java项目 编译后,会在 workspace 的项目文件夹下生成:
bin/包/xx.class
src/包/xx.java
引入的jar包 也在 src下:
这时 如果想 用 相对路径读取 generatorConfig.xml ,必须用 new File("bin/generatorConfig.xml");
或者: new File("conf/generatorConfig.xml");
相关文章
- 暂无相关文章
用户点评