I have this line in my program :
InputStream Resource_InputStream=this.getClass().getClassLoader().getResourceAsStream(\"Resource_Name\");
Long story short: Don't use FileInputStream as a parameter or variable type. Use the abstract base class, in this case InputStream instead.