Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Urgent: Resourcebundle.getBundle() doesn't look for properties file

Thread view: 
Ramkumar Kaleeswaran - 08 Dec 2005 05:09 GMT
Hi all,

Our properties files are located at path say xxx and bundle name is bbb. So,
our code does the following Resourcebundle.getBundle(bbb,locale). This works
fine.

Now, we need to support kanji script in japanese. So, my code appends kanji
to the bundle name as in bbb-kanji. I have the properties file corresponding
to this at the same location xxx. the properties file is
bbb-kanji_ja_JP.properties.

But, this code throws MissingResourceException. I am not able to figure out
why getBundle() works fine with other locales, but doesn't work when the
bundle name is modified to include kanji in its name.

Can someone please share their thoughts on what could be wrong ? Has anyone
faced similar issues ?

Thanks and appreciate your help.

Regards
Ram
Viator - 08 Dec 2005 09:41 GMT
Use Resourcebundle.getBundle(bbb-kanji,locale) to get this.
Ramkumar Kaleeswaran - 08 Dec 2005 11:08 GMT
I did exactly that, but it doesn't seem to work.

Thanks
Ram

> Use Resourcebundle.getBundle(bbb-kanji,locale) to get this.
Viator - 08 Dec 2005 13:03 GMT
Is the resource file put in 'classpath'.
Please quote the complete code also.

Amit :-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.