IntelliJ: Adding resources to the class path, but still gives me "java.util.MissingResourceException: Can't find bundle.... locale en_US"

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2012-06-21T03:12:19Z Indexed on 2012/06/21 3:16 UTC
Read the original article Hit count: 367

I am quite new to intellij and i have loaded in a project that i wish to compile, everything seems to be going well, but when i compile it. I get the bundle cannot be found.

java.util.MissingResourceException: Can't find bundle for base name openfire_i18n, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)

After doing some investigation, it appears i have to include the resources in the class path, is this correct?

I have done Project Settings, Modules, Dependencies, and i added a "Jars or directories"

There is a checkbox that says Export, i have tried clicking it and unclicking it :-)

My resources i can see are in

i8n\ResourceBundle

I tried adding the i8n and it asked me for a category for selected files, i put classes

RUN - but still same error..

so i tried adding the i8n/ResourceBundle directory

RUN - still same error.

I notice under my ResourceBundle directory there are

C:\Dev\Java\openfire_src_3_7_1\openfire_src\src\i18n\openfire_i18n_en.properties

but there is no specific en_US but i thought it supposed to fallback to EN ??

SO i think everything is ok.

Can anyone help

I am really stuck

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about intellij-idea