File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle woes

 
Tim Manchester
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code:


When I step through it, I get the "DataAccessObject.properties exists!" message, but when I get to the call to getBundle(), I get the following error:
java.util.MissingResourceException: Can't find bundle for base name DataAccessObject.properties, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:724)

Does anyone know what the problem might be?
[ July 22, 2005: Message edited by: Tim Manchester ]
 
Richard Anderson
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should use a
 
Richard Anderson
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should use a PropertyResourceBundle instead of just a ResourceBundle.
 
Tim Manchester
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That works. Thanks.

- T
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic