Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. file not found exception in jar
  2. public class ABC {
  3.     public ABC() {
  4.         File file = new File("xyz.xml");
  5.        
  6. java -jar filename.jar arguments....
  7.        
  8. java.lang.IllegalArgumentException: InputStream cannot be null
  9. at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
  10. at com.ensarm.niidle.web.proxy.ABC.<init>(ABC.java:47)
  11.        
  12. InputStream input = SeleniumConfiguration.class.getResourceAsStream("/SeleniumConfiguration.xml");