When I call:
Image photo = new Image(getClass().getResourceAsStream("/images/myPhoto.png"));
It seems to look in the bin folder of the class that I called that line in. Of course, there is no images folder in my bin folder and it yields an error. How do I re-direct it to the main directory of my project and into my 'images' folder? I tried adding the folder to my eclipse project and then right clicking and setting 'add to build path' but that just caused more compile errors.
I also don't want to define a strict location like:
c:/users/me/java/etc because if this JAR is ever on another person's computer, it won't work.
Thanks for the help.