FAQs
Search
Recent Topics
Flagged Topics
Hot Topics
Best Topics
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Liutauras Vilda
Bear Bibeault
Devaka Cooray
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Campbell Ritchie
Henry Wong
Saloon Keepers:
Tim Moores
Ron McLeod
salvin francis
Stephan van Hulst
Vijitha Kumara
Bartenders:
Tim Holloway
Carey Brown
Frits Walraven
Forum:
Beginning Java
Exception in locale
joseph prabhu
Ranch Hand
Posts: 162
posted 9 years ago
Hello joseph here
Locale currentLocale = new Locale("en", "US"); ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
Above code produce MissingResourceException
what will be error in program
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 9 years ago
The exception means just what it says. You are missing a resource for that locale. Does the file "MessagesBundle_en_US.properties" exist? Is it on your classpath?
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
Post Reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Setting DecimalFormat grouping
ResourceBundles & its properties files
Dynamic Internationalization (I18N) - Creating a Multilingual Application
I18n problem
bean:write not using locale settings while formatting a date value.
More...