Why should i get error for example 1:C:\>java Resrf Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name config.properties, locale en_US at java.util.ResourceBundle.throwMissingResourceException(Unknown Source ) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at Resrf.main(Resrf.java:8)
What is the exact name of the Resource? Is it config, or config.properties?
Joined: Oct 30, 2007
the file is actually a properties file(config.properties)
when if specify base name "config.properties" as in example1 i start getting error,but when i specify it as "config" the code executes successfully.Why is it so?resource should only be a properties file?
Joined: Oct 13, 2005
Don't know, I am afraid, and I don't think this API link helps a lot. Sorry.