Hello again. I managed to get all the images into the jar file using.
getClass().getResource("/" + imageName);
Now I'm trying to get the text files that are read in to build maps of areas using the images. I thought I would use the same but the File Class does not like URLs in its constructor. To solve this I appended a .getPath() to the end of the statement.
getClass().getResource("/" + textFile).getPath();
But the program does not seem to like this. I end up getting a path that looks something like the following: