• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading A properties file in Java

 
Maverick Gsp
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Hi Experts,

I am new to java and trying to develop a program to read a simple properties file through a basic java program,I have attached the corresponding java code also,



I am getting the below error

"java.io.FileNotFoundException: deploy.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at App.main(App.java:15)"

The file is correctly placed at the defined location in the code,can you please confirm as to where am i going wrng?

Looking fwd for guidance from experts.

Regards,
Mav
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Your code refers to x.properties whereas the stack trace refers to deploy.properties. Have you posted the correct code?

Also, please check your private messages for an important administrative matter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic