loadResourceasStream from a subfolder of the project java
<p>I am sure it's a basic  question , I just can't figure it out
I am trying to load  bunch of images  located in  images subfolder of my project </p>

<p>here is my code</p>

<pre><code>package com.ieml.swt.diploma;

import java.io.InputStream;



public class loadTest
{


    public static void main(String[] args) 
    {

System.out.println(getResourceImage("marks.png"));
    }


    public static InputStream getResourceImage(String fileName) {

        return loadTest.class.getResourceAsStream("./images/" + fileName);
    }
}
</code></pre>

<p>I have a separe folders for src and class files
so .java file is located in  src/com/ieml/swt/diploma folder
and .class file under bin/com/ieml/swt/diploma folder<br>
files I'm trying to load  here  do existt in the "loadTest/images" subfolder loadTest is my project's root directory
it justs print s null like it's doesn't load this file
am I missing something here ?</p>
