ReadProperties read = new ReadProperties("db");
double currentVersion = Double.valueOf(read.readProperties("Version"));
if (version <= currentVersion) {
String path = Thread.currentThread().getContextClassLoader()
.getResource("").toString();//获取更目录地址
path = path.substring(path.indexOf("/") + 1, path.length()) + "pda";
try {
path = URLDecoder.decode(path, "utf-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}// 关键啊 !主要转换文件地址,避免空格问题
System.out.println(path);
D:\Apache Software Foundation\Tomcat 6.0\webapps\sxrc\WEB-INF\classes