This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes ResourceBundle file name problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ResourceBundle file name problem" Watch "ResourceBundle file name problem" New topic

ResourceBundle file name problem

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251

i try to be able to use many language for a application

i will read language and country from a properties.... for the example i hardcoded ...

the file name is: MyRessources_en_US

i get the error:
ception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name MyResources, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(
at java.util.ResourceBundle.getBundleImpl(
at java.util.ResourceBundle.getBundle(

any idea?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

the file name is: MyRessources_en_US

You mean ?

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: ResourceBundle file name problem
It's not a secret anymore!