Given this error message when running your application:
Exception in thread “main” java.util.MissingResourceException: Can’t find bundle for base name
MessageBundle, locale
And given that the MessageBundle.properties file has been created, exists on your disk, and is
properly formatted.
What is the cause of the error message?
A.
The file is not in the environment path.
B.
The file is not in the classpath.
C.
The file is not in the javapath.
D.
You cannot use a file to store a ResourceBundle.
Explanation:
ResourceBundle.getBundle is using a resource name; it isn’t called ResourceBundle for nothing.
You can create a custom ClassLoader and use that to load the data.
I would vote for B.
Me too, B.
It is indeed B.
http://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html
getBundle loads the bundle from the classpath.
b