File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Reading A properties file in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading A properties file in Java" Watch "Reading A properties file in Java" New topic

Reading A properties file in Java

Maverick Gsp

Joined: Apr 08, 2013
Posts: 1
[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

" (The system cannot find the file specified)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)
at App.main("

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.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10817

Welcome to the Ranch.

Your code refers to whereas the stack trace refers to Have you posted the correct code?

Also, please check your private messages for an important administrative matter

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Reading A properties file in Java
It's not a secret anymore!