One if the simplest ways would be to include the images within the jar file itself, this reduces the number of resources you'll need to deploy; much easier to deploy a single jar then a jar file and a bunch if images
It also reduces the possible issues with execution context and having to calculate the relative paths
Who you achieve this will depend on how you are building the jar, for instance in Netbeans and Eclipse, you can copy the images into the src
directory. In maven, you'd need to include the images in the resources
directory
This will change the way you need to use to load the images or resources
You will need to use Class#getResource
or Class#getResourceAsStream
depending in your needs, for example
ImageIcon img = getClass().getResource("/start.png");
Remember, you will need to use the full path to the image from the context of the src
directory
This means if you place the resources
within the images
directory under the src
directory, then you will need to use /images/start.png
for example