What is the cause of the error message?

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?

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.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


bob

bob

Answer D is wrong, B is correct.

dwin

dwin

Why A incorrect?