I am trying to read xml file in java.But I am facing FilenotFoundException .Could any one help?
Source Code:
Properties props = new Properties();
FileInputStream fis;
try {
fis = new FileInputStream("src/org/inbound/service/db/dbdetails_remedey.xml");
try {
props.loadFromXML(fis);
} catch (IOException e) {
e.printStackTrace();
}
} catch (FileNotFoundException e1) {
e1.printStackTrace();
}
Exception:
java.io.FileNotFoundException: src\org\inbound\service\db\dbdetails_remedy.xml (The system cannot find the path specified)
Aucun commentaire:
Enregistrer un commentaire