From ArchWiki

Application Icons

Java applications do not show icons correctly. I'm using gnome (also tried with xfce). When the application is launched the icon specified in the .desktop file is not what's displayed in the dock or on the toolbar. This is something that only happens with Java applications. I've been trying to research this but haven't really come up with any good solutions yet. I think it has something to do with the fact that Java applications are putting code into a different process and running in the JVM? TheChickenMan (talk) 16:16, 18 April 2019 (UTC)