bundle « PropertyFile « Java I/O Q&A





1. java message bundle - property file naming convention when using variants?    stackoverflow.com

what is the naming convention for message bundle property files when using variants? for instance, if the locale is EN US, the property file lookup will be message_en_US.properties though, what if I instantiate a ...

2. Unable to read properties file using resouce bundle    coderanch.com

Hi, I am tryig to read properties file using resource bundle which is not in class path. but i am getting below error java.util.MissingResourceException: Can't find bundle for base name E:\InteractCRM\SMSConnect\configuration\config\JMSConfig.properties, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1508) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262) at java.util.ResourceBundle.getBundle(ResourceBundle.java:717) at com.interactcrm.props.FilePropertyReader.getProperty(FilePropertyReader.java:16) at com.interactcrm.props.FilePropertyReader.main(FilePropertyReader.java:26) - getProperty java.util.MissingResourceException: Can't find bundle for base name E:\InteractCRM\SMSConnect\configuration\config\JMSConfig.properties, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1508) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262) at java.util.ResourceBundle.getBundle(ResourceBundle.java:717) ...