How to access photos if importing Processing into eclipse?

Hello, I am currently working on a photomosaic project. It’s the same one that The Coding Train did a video on. I just tried to port it into eclipse, and am adding some extra functions. How does one make it to where eclipse can find the photos that I try to use in my program. Currently whenever I run the program in eclipse, I get a " file x.jpg is missing or inaccessible".

I tried making a few edits, and now the error message I have is this:
at RexProject.setup(
at processing.core.PApplet.handleDraw(
at processing.awt.PSurfaceAWT$12.callDraw(
at processing.core.PSurfaceNone$

is there a way to know what this means?

Hi @Magic ,

Welcome to the community! :wink:

I think that when doing a project in Eclipse, the path of the files is relative to the root of your project so if you have them inside my-project/data, you should say loadImage("data/image.jpg").

Let me know if it works

1 Like


nice to see you

1 Like