This discussion is archived
6 Replies Latest reply: Feb 14, 2010 6:54 PM by 843810 RSS

How to run applications that use resource bundle - jvm not able to find res

843810 Newbie
Currently Being Moderated

I am puzzled over how to run applications that use resource bundle - jvm is not able to find resources referenced in the program. Getting following exception:
Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name ScreenTexts, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
        at java.util.ResourceBundle.getBundleImpl(Unknown Source)
        at java.util.ResourceBundle.getBundle(Unknown Source)
My working directory is D:\RES_TEST>.
The resource files are in a subfolder "Properties"

I tried with (1) setting library path variable and (2) giving the classpth.

D:\RES_TEST> java -Djava.library.path=Properties -jar <my_executable_jarred_app>

Please help.


Both ways it did not work.