In my project I use the system tray, when I compile the program everything is working fine and the icon that I use for the system tray shows up.
The icon is placed in the project folder and the code related to the icon is
Image icon = Toolkit.getDefaultToolkit().getImage("Icon.png");
trayIcon = new TrayIcon(icon, "Program name", popup);
trayIcon.setImageAutoSize(true);
tray.add(trayIcon);
As I said, everything works find but when I export the project as a runnable jar the program will run but the icon will not show up, but it will just be blank.