6 Replies Latest reply on Feb 15, 2010 2:54 AM by 843810

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


      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.