I have a Java Desktop application for which the icon does not shows up every time it runs. The app might run successfully but the icon won't show up. I was hinted by my senior that this might be the issue of the library we use. I looked up on Internet and was unable to find anything. If anyone has any idea how this may be fixed, pls contact.
I want to add new Libraries to test the functioning of it but is unable to find. As of now dorkbox.SystemTray and dorkbox.Util are the two libraries in usage.
Is there any different library to try out or any method.
The following is my code
This is how I've initialized SystemTray
public static SystemTray systemTray;
This is the code to display SystemTray
public static void showTray() throws Exception {
try {
if (systemTray == null) {
System.exit(0);
}
System.out.println(SystemTray.DEBUG);
SystemTray.DEBUG=true;
CacheUtil.clear();
SystemTray.FORCE_GTK2=true;
systemTray.setImage("/usr/local/bin/Desklog-Client/nonet.png");