no property file loaded, using defaults... (java.io.FileNotFoundException: /home/dedhia/.jftp/jftp.properties (No such file or directory))
Here is my java code in which I get the property file:
Expand|Select|Wrap|Line Numbers
- String propertyFile = System.getProperty("Outlier.PropertyFile","OutlierReportGenerator1.PROPERTIES");
- System.out.println(propertyFile);
- //Location of property file
- properties = new File(File.separator + "home" + File.separator + "dedhia" + File.separator + "OutlierReportGenerator" + File.separator + "classes" + File.separator + propertyFile);
- System.out.println(properties);
- BufferedReader BR = new BufferedReader(new FileReader(properties));
- System.out.println("I got to this pt");
- String line = BR.readLine();
Expand|Select|Wrap|Line Numbers
- /usr/local/jdk1.6.0_11/bin/java -Dreports="true" -Dmail="true" -Dconnect="true" -Dccserv="true" -DOutlier.PropertyFile=OutlierReportGenerator1.properties -cl
- asspath /home/dedhia/OutlierReportGenerator/classes:/home/dedhia/OutlierReportGenerator/classes/jftp.jar:/home/dedhia/OutlierReportGenerator/classes/jxl.jar:
- /home/dedhia/OutlierReportGenerator/classes/produtil.jar:/home/dedhia/OutlierReportGenerator/classes/activation.jar:/home/dedhia/OutlierReportGenerator/class
- es/mail.jar:/home/dedhia/OutlierReportGenerator/classes/classes12.zip:/home/dedhia/OutlierReportGenerator/classes/OutlierReportGenerator.jar ReportGenerator
Am I doing something incorrect in the way that I am loading my property file because I have tried a few different things but seem to get the same error over and over again.
Thanks for the help!!!