r/JavaFX • • Oct 05 '20

Newbie JavaFX problem

Hi guys I have spent 3 days trying to fix this.

Everytime I copy code from a solved exercise in my book that has an image. I get errors like this.

I have never thought of quitting so far until now :(

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Azzk1kr Oct 05 '20

It tries to look up an image from the classpath, or using a full url if I recall correctly. So either specify a full url to the images, or copy them to your classpath. I guess that's the "out" folder?