File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Error in reading Properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error in reading Properties file" Watch "Error in reading Properties file" New topic
Author

Error in reading Properties file

duhit Choudhary
Ranch Hand

Joined: Apr 01, 2012
Posts: 64
Hi all,
I am getting error while executing the program given below




and the error is:
java.io.FileNotFoundException: C:\BlackList.propeties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at test.TestNew.main(TestNew.java:20)
please let me know what i am doing wrong. i alreasy check the file anem and its location which is correct. in the 16th line.
Thanks in advance.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
duhit Choudhary wrote:and the error is:
java.io.FileNotFoundException: C:\BlackList.propeties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at test.TestNew.main(TestNew.java:20)


Is it properties or propeties? The error message is clear.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error in reading Properties file