This error has been bugging me a lot. I can't seem to understand why in the world Eclipse can't read this resource which is right there. I have already checked the classpath in the Configure inclusion dialog box. I am also using the fully qualified name for this file.
AutomateWaveClose
src
package DBCommon
DBConfig.properties
(couldn't paste a pic due insufficient reputation)
Filename in the code is as follows:
private static final String FILENAME="AutomateWaveClose.src.DBConfig.properties";
ResourceBundle DBconfig = ResourceBundle.getBundle(FILENAME);
The exception I am getting is:
I don't understand why locale en_US is coming up as I am only using the basename when calling this method. Any help is appreciated. I have gone through similar related posts but they didn't help me.
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name AutomateWaveClose.src.DBConfig.properties, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250) at java.util.ResourceBundle.getBundle(ResourceBundle.java:705) at DBCommon.GetAS400Connection.main(GetAS400Connection.java:25)