Oracle
1Z0-805 · Question #22
Given the error message when running you application: Exception in thread "main" java.util.MissingResourceException: can't find bundle for base name messageBundle, Locale And given that the Message…
The correct answer is C. The file is not in the JJAVAPATH. Your language file should be in the classpath.
Localization
Question
Given the error message when running you application:
Exception in thread "main" java.util.MissingResourceException: can't find bundle for base name messageBundle, Locale And given that the Message Bundle.properties file has been created, exists on your disk, and is properly formatted. What is the cause of the error message?
Options
- AThe file is not in the environment PATH.
- BThe file is not in the CLASSPATH.
- CThe file is not in the JJAVAPATH.
- DYou cannot use a file to store a ResourceBundle.
How the community answered
(17 responses)- A6% (1)
- B6% (1)
- C76% (13)
- D12% (2)
Explanation
Your language file should be in the classpath.
Topics
#ResourceBundle#MissingResourceException#CLASSPATH#properties file
Community Discussion
No community discussion yet for this question.