Both above solution are working fine if i am running the program. But if i build the exe file and the run the application i am getting : Caused by: java.util.MissingResourceException: Can't find bundle for base name pplicationConfig, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundl .java:804)
I spent like a month researching once this issue as it relates to J2EE jars and it can be frustrating. You can put the properties file inside a JAR, but then the JAR must be specifically named in the class path if it is being used as a utility jar and not the main application.
I tend to use getResourceAsStream() more than RS.getBundle() due to easier naming conventions, although both work just fine. Show the error you get if you use getResourceAsStream() with D:\ as the classpath.