Hi All,
In order to internationalise my code, I use a property file called MessagesBundle_en_UK.properties which is located in a resource folder called config so that I the following structure:
+---src
\---com
\---proj
\---messages
Messages.java
+---config
\---languages
MessagesBundle_en_UK.properties
Messages.java has:
currentLocale = new Locale("en", "UK");
messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
and I have added config/languages at the beginning of the classpath and it works fine when I run the program with javac/java from the command line.
My problem is that it doesn't work when I run the jar and I get this MissingResourceException error.
although the manifest does include config/languages:
Class-Path:
./config/languages
./libs/xxxx.jar
./libs/...
...
I'm bit confused...
Thanks for the help David