title: java.util.MissingResourceException when running a jar
body: <p>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:</p>
  
  <pre><code>+---src
        \---com
              \---proj
                     \---messages
                                Messages.java  
  +---config
           \---languages
                      MessagesBundle_en_UK.properties
  </code></pre>
  
  <p>Messages.java has:</p>
  
  <pre><code>    currentLocale = new Locale("en", "UK");
      messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
  </code></pre>
  
  <p>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.</p>
  
  <hr>
  
  <p>My problem is that it doesn't work when I run the jar and I get this MissingResourceException error.</p>
  
  <p>although the manifest does include config/languages:</p>
  
  <pre><code>    Class-Path: 
        ./config/languages 
        ./libs/xxxx.jar
        ./libs/...
        ...
  </code></pre>
  
  <p>I'm bit confused...</p>
  
  <p>Thanks for the help
  David</p>