File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Exception in locale
Joined: Feb 26, 2008
Aug 14, 2008 05:33:00
Hello joseph here
Locale currentLocale = new Locale("en", "US"); ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
Above code produce
what will be error in program
Joined: Apr 14, 2004
Aug 14, 2008 05:46:00
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?
It is sorta covered in the
JavaRanch Style Guide
subject: Exception in locale
Setting DecimalFormat grouping
ResourceBundles & its properties files
Dynamic Internationalization (I18N) - Creating a Multilingual Application
bean:write not using locale settings while formatting a date value.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015