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

  • Thread starter Ramkumar Kaleeswaran
  • Start date
R

Ramkumar Kaleeswaran

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
 
V

Viator

Is the resource file put in 'classpath'.
Please quote the complete code also.

Amit :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top