I got it,
When you run your code from
IDE. It runs from build.
And if you created file, and compile that file only,
then resource files will not be copied there.
But once you clean and build your project, your all class files and resource files will be in build folder. So now when you run single file from netbeans it will run.