title: How to locate the grammar file in sphinx java
body: <p>i am making a speech to text application using sphinx
  But the location of the grammar file in the config.xml is not correct or i am not getting the right path.</p>
  
  <pre><code>&lt;!-- ******************************************************** --&gt;
      &lt;!-- The Grammar  configuration                               --&gt;
      &lt;!-- ******************************************************** --&gt;
  
      &lt;component name="jsgfGrammar" type="edu.cmu.sphinx.jsapi.JSGFGrammar"&gt;
          &lt;property name="dictionary" value="dictionary"/&gt;
          &lt;property name="grammarLocation" 
               value="resource:/com/stt/project/" /&gt;
          &lt;property name="grammarName" value="Grammer"/&gt;
      &lt;property name="logMath" value="logMath"/&gt;
      &lt;/component&gt;
  </code></pre>
  
  <p>The structure of the files are in the image here : 
  <a href="https://i.stack.imgur.com/Q6s0h.jpg" rel="nofollow noreferrer">File Hiererchy of the project</a></p>
  
  <blockquote>
    <p>This problem has been resolved by using the cmusphinx api</p>
  </blockquote>