Question: I have this line in my program :

```
InputStream Resource_InputStream=this.getClass().getClassLoader().getResourceAsStream("Resource_Name");

```

But how can I get FileInputStream from it [Resource\_InputStream] ?

Answer: 
Long story short:
**Don't use FileInputStream** as a parameter or variable type. Use the abstract base class, in this case InputStream instead.
You need something like:

```
    URL resource = this.getClass().getResource("/path/to/resource.res");
    File is = null;
    try {
        is = new File(resource.toURI());
    } catch (URISyntaxException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
    try {
        FileInputStream input = new FileInputStream(is);
    } catch (FileNotFoundException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }

```

But it will work only within your IDE, not in runnable JAR. I had same problem explained [here](https://stackoverflow.com/questions/23854130/eclipse-java-file-fileinputstream-vs-input-stream-when-loading-font-file).