[Solved] How to set the right path to image in java?

Have a look at MKYong’s tutorial. It shows you where to put your image. If you want the image to be loaded as “resource”, you have to put it in the resources folder. You project structure would be like this: MyProject +–src +–main +–java | +-com | +–me | +–Main.java +–resources +–pepsi.jpg and in your … Read more