title: java.util.MissingResourceException: Can't find bundle for base name config, locale en
body: <p>I looked answers of this question but they did not work for me. 
  I have a file called "config_en.properties" in the Resources folder. (Project->Resources->config_en.properties)</p>
  
  <pre><code>jms_Address=t3://127.0.0.1:7101
  connection_Lookup_Address=BatchApp-BatchGebelikTakip-BatchGebelikTakipEJB#tr.com.surat.esaglik.batch.ejb.IBatchGebelikTakipEJB
  </code></pre>
  
  <p>And in my java class I try to read this config:</p>
  
  <pre><code>private static final String fileName="config"; 
  
  public static final String jms_Address="jms_Address";
  public static final String conn_Lookup_Address="connection_Lookup_Address";
  private static ResourceBundle res;
  private static ClassLoader cl;
  static {
      try {
          cl = Thread.currentThread().getContextClassLoader();
          res = ResourceBundle.getBundle(fileName, Locale.ENGLISH, cl);
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  public void test(){
      System.out.println(res.getString(jms_Address).
  }
  </code></pre>
  
  <p>But I get this error messages:</p>
  
  <pre><code>java.util.MissingResourceException: Can't find bundle for base name config, locale en
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:952)
      at tr.com.surat.esaglik.batch.Main.&lt;clinit&gt;(Main.java:34)
  java.lang.NullPointerException
      at tr.com.surat.esaglik.batch.Main.getInitialContext(Main.java:74)
      at tr.com.surat.esaglik.batch.Main.run(Main.java:43)
  </code></pre>
  
  <p>What is wrong?</p>
  
  <p><img src="https://i.stack.imgur.com/PggoN.png" alt="enter image description here"></p>