I'm new to creating jar files. I'm using JCreator and have set up the jar creation and the manifest using winrar and txt to get it to run. However if I run the .jar from anywhere other than the programs root directory all the images vanish. I have been looking at other peoples solutions but none of them are using Images for their graphics and all of mine are loaded with Image.
Image virImage,Background; //above line is declaration of Image type variables //the line below is in the constructor loading the image into the variable. Background = Toolkit.getDefaultToolkit().getImage("images/MapForGame.jpg");
Is it possible or are Image variables unable to be used in jar files? I'd like to avoid converting everything into ImageIcons if I can since I haven't worked with them and it seems like it would be a difficult conversion at this point in the program since I'm using several 100 images.
Thank you in advance for any help.