title: Initial Context not loading jndi.properties
body: <p>I am  trying to set up a sample Chat application using Active MQ and Eclipse.</p>
  
  <p>I have followed the documentation at Apache site and getting the following error upon executing the Chat Application</p>
  
  <pre><code>javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.list(Unknown Source)
  </code></pre>
  
  <p>I assume the <code>jndi.properties</code> files is not loading but not sure if that is the root cause</p>
  
  <p>Following question is similar but I don't see the issue getting resolved.
  <a href="https://stackoverflow.com/questions/11302531/how-to-place-a-file-on-classpath-in-eclipse">How to place a file on classpath in eclipse?</a></p>