So i'm trying to make a game as part of my class's final project. I've drawn my own background and tested with different images beforehand that show that a png image works as well as a jpeg to import as a world class image.
Heres my problem. I go to import the background image file i'm going to use for the game, but it keeps pulling up an error message saying a java memory heap? It's really unnerving that it keeps giving me the error box no matter what i try to do. And i've done both the png and jpeg versions of the image.

