posted 17 years ago
Properties properties = new Properties();
try {
properties.load(new FileInputStream("/project/folder1/file.properties"));
} catch (IOException e) {
}
you must use the absolute path or the relative path of the properties file.
remember, if you are executing p1.p2.A.class then your class could be in c:\p1\p2 folder, but you will be executing it from c:\ so the path of the properties file should be either absolute path or relative path to c:\