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 ResourceBundle to read property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ResourceBundle to read property file" Watch "ResourceBundle to read property file" New topic

ResourceBundle to read property file

naren ramanujam

Joined: Jun 14, 2006
Posts: 7
i have used ResourceBundle to read property file..
when i try to run it in eclips IDE
it throwing an Exception
and that is as follow:::
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name xxxx, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(
at java.util.ResourceBundle.getBundleImpl(
at java.util.ResourceBundle.getBundle(
at pankaj.ReadProperty.<init>(
at pankaj.ReadProperty.main(
Java Result: 1
Mahesh Desai
Ranch Hand

Joined: Apr 04, 2007
Posts: 76
Put your property files in classpath, so that ResourceBundle load it correctly.


SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
I agree. Here's the link:
subject: ResourceBundle to read property file
It's not a secret anymore!