Though image is not very clear, I get your point.
When using maven, it knows that it has to look for file in "resource" folder.
But since you are not using maven you would have to adopt another mechanism.
"getResourceAsStream" needs path to file but you can not provided it hard coded path because then test would not work in machine of other test engineers.
You could build path dynamically, in this case.
Consider I have test data file in following location -
"C:\Users\tbhadauria\seleniumtestworkspace\apitesting\testdata\jsonexample.json"
where "jsonexample.json" is my test data file.
Now to get the absolute path to file, I can use -
System.getProperty("user.dir")+"//testdata//jsonexample.json"
And then you can pass it to method - getResourceAsStream, so it becomes -
getResourceAsStream(System.getProperty("user.dir")+"//testdata//jsonexample.json")
Hope this helps.
~ seleniumtests.com