wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in reading Properties file
 
Similar Threads
Problem running ByteStream example code in eclipse
Struts Plugins
FileNotFoundException When Trying to Read from a .properties file
Reading a file
File Reading Error