Hi,
wen i checked the log file, i think the error might be in the line of the
code.
root = propFile.getProperty("app.directory");
This code should be able to download the files from the server. so i m using
application.properties where
app.directory="D:\\temp\\files\\"
I doubt because of this line am i not able to run the appln. Pls let me know
where should i place this application.properties file.
Regards
deepa
Here is a code snnipet:
String JAVA_HOME = "application.properties";
// Get a handle on the properties file
try{
in = new FileInputStream(JAVA_HOME);
propFile = new Properties();
propFile.load(in);
}
catch (IOException ignore){}
separator = "/";
// Get the directory from the application.properties file
// e.g. C:\\Temp\\Files\\
root = propFile.getProperty("app.directory");
Deepa
}
---------------------------------
Jiyo cricket on Yahoo! India cricket