eclipse断点调试 出现Source not found 的问题
代码如下:我在执行到最后一句的时候,显示Source not found 的问题,而在这个路径里面确实创建有 usergui.properties的文件。请大虾指点一下迷津。这个问题折磨我两天了,在线求教!
public class ConfigurationUtil {
/**
* 用于保存propertiesconfiguration对象,提供给其他的方法使用
* @see org.apache.commons.configuration.PropertiesConfiguration
*/
private PropertiesConfiguration config = null;
/**
* 用于保存配置文件的路径,方便其他方法使用
*/
private String FileName = null;
/**
* 无参数构造函数,使用默认的参数值
*
*/
public ConfigurationUtil()
{
FileName = "usergui.properties";
}
/**
* 构造函数,带有配置文件路径,用于构建对象
* @param fileName 配置文件的路径
*/
public ConfigurationUtil(String fileName) {
super();
// TODO Auto-generated constructor stub
FileName = fileName;
}
/**
* 将配置的数据保存到配置文件
* @param cb 配置数据的封装体
* @see PropertiesBean
*/
public void setConfiguration(PropertiesBean cb) {
try{
//remove the file previously saved if necessary
File file = new File("./config",FileName);
if(file.exists())
{
file.delete();
}
try
{
file.createNewFile();
System.out.println("文件初始化成功");
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
String path = file.getAbsolutePath();
config = new PropertiesConfiguration(path);
...