When I try to make an image for some reason my path does not work and I have no idea why. Do I have to use ImageView instead?
Image planetPicture = new Image("/Users/rizins/Desktop/earth.gif");
I get the error
Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found
at javafx.scene.image.Image.validateUrl(Image.java:1089)
Any ideas on how to fix this would be much appreciated, or a link to another post.