This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle to read property file

 
naren ramanujam
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at pankaj.ReadProperty.<init>(ReadProperty.java:19)
at pankaj.ReadProperty.main(ReadProperty.java:25)
Java Result: 1
 
Mahesh Desai
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put your property files in classpath, so that ResourceBundle load it correctly.


Thanks,
Mahesh


--------------------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic