0 Replies Latest reply on Aug 17, 2008 8:16 AM by 843844

    getting an error while accecing resource bundle from java file......

      I want to access the properties file to my java file ..

      My resource file named as "application" is in the resources package...
      and I am using following code to load the resource file into my java file...

      java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle("resources.application",new Locale("en","US"));
      String message = rb.getString("welcome.heading");

      But getting following error....


      Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
      at javaapplication1.c.<init>(Main.java:26)
      at javaapplication1.Main.main(Main.java:47)
      Java Result: 1


      can anyone tell me whats the problem and why am i facing this error