title: ResourceBundle can't be found in jar
body: <p>I have a problem when I export my project to a jar. The ResourceBundles work fine when I run the project in Eclipse, but not from the jar. I exported it as Export -> jar file.</p>
  
  <p>I start the jar in (Windows) cmd -> java -jar %projectName%.jar. The ResourceBundles are:</p>
  
  <ul>
  <li>Eclipse: %projectName% -> src -> language</li>
  <li>In the jar: folder language.</li>
  </ul>
  
  <p>And I load it this way:</p>
  
  <pre><code>ResourceBundle.getBundle("language.Language", currentLocale)
  </code></pre>
  
  <p>I looked at so many other questions about this on Stackoverflow and their problem was always that they didn't provide a path from the root. I have no idea why this isn't working. I tried putting these .properties files at root too...</p>
  
  <p>Note: the class that manages these bundles/locales is also in the same packages.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Edit</strong>: maybe some extra information, I get the Strings this way:</p>
  
  <pre><code>public static String getString(String key) {
          try {
              return ResourceBundle.getBundle("language.Language", currentLocale)
                      .getString(key);
          } catch (MissingResourceException e) {
              return "KEY " + key + " NOT FOUND !";
          }
  }
  </code></pre>
  
  <p>Stacktrace:</p>
  
  <pre><code>Exception in thread "main" java.util.MissingResourceException: Can't find bundle
   for base name language.Language, locale nl_be
          at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
          at java.util.ResourceBundle.getBundleImpl(Unknown Source)
          at java.util.ResourceBundle.getBundle(Unknown Source)
          at language.LanguageModel.getString(LanguageModel.java:33)
          at cli.class.method(class.java:35)
          at main.Main.main(Main.java:26)
  </code></pre>
  
  <p>The properties:</p>
  
  <pre><code>Language_en_US.properties
  Language_fr_FR.properties
  Language_nl_BE.properties
  ....
  </code></pre>