Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error - Can't find bundle

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm getting below mentioned error while using resource bundle

java.util.MissingResourceException: Can't find bundle for base name report, locale en_US

Here is the code
ResourceBundle rb = ResourceBundle.getBundle("report");

I have report.properties file in the WEB-INF folder in the war file. Is this the incorrect folder to have properties file ?

Really appreciate any suggestions.

Thanks
 
Santhosh Reddy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try keeping the file in classes folder
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic