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:
java.lang.NullPointerException
at RexProject.setup(RexProject.java:55)
at processing.core.PApplet.handleDraw(PApplet.java:2432)
at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1547)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:313)

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

@josephh

nice to see you

1 Like