title: Finding path in XML not working when in jar
body: <p>I am currently having some problems. I am using an XML file to run CMU Sphinx. The XML file finds paths by using path = resource:/(file path located within resource). This works when in eclipse but when I export to runnable to jar it is unable to locate resource. What could I do to fix this? Currently I have tried adding a source folder and adding the resource contents, I unpacked the jar and everything was located where it should be. I also tried building without a source folder holding the contents. Any help would be great. Thanks :)</p>
  
  <pre><code>URL configURL = Transcriber.class.getResource("config.xml"); //works
  
  ConfigurationManager cm = new ConfigurationManager(configURL); //Also works
  </code></pre>
  
  <p>From the xml</p>
  
  <pre><code>&lt;property name="dictionaryPath" value="resource:/speechcapture/edu/cmu/sphinx/model/acoustic/HUB4_8GAU_13dcep_16k_40mel‌​_133Hz_6855Hz "/&gt;
  </code></pre>
  
  <p>The above only works in eclipse but this will work in jar or eclipse</p>
  
  <pre><code>&lt;property name="dictionaryPath" value="C:/project/speechcapture/resource/speechcapture/edu/cmu/sphinx/model/acoustic/HUB4_8GAU_13dcep_16k_40mel‌​_133Hz_6855Hz "/&gt;
  </code></pre>
  
  <p>Exception in thread "main" Property exception component: 'wsjloader' property: 'location' - can't locate resource:/speechcapture/edu/cmu/sphinx/model/acoustic/HUB4_8GAU_13dcep_16k_40mel_133Hz_6855Hz</p>
  
  <p>edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/speechcapture/edu/cmu/sphinx/model/acoustic/HUB4_8GAU_13dcep_16k_40mel_133Hz_6855Hz</p>