title: file not found exception in jar
body: <pre><code>public class ABC {
      public ABC() {
          File file = new File("xyz.xml");
  </code></pre>
  
  <p>but when I run my jar as follows:</p>
  
  <pre><code>java -jar filename.jar arguments....
  </code></pre>
  
  <p>then it is showing error:</p>
  
  <pre><code>java.lang.IllegalArgumentException: InputStream cannot be null
  at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
  at com.ensarm.niidle.web.proxy.ABC.&lt;init&gt;(ABC.java:47)
  </code></pre>
  
  <p>How can I fix it?</p>