I have a Java application that I installed via install4j. The desktop shortcut shows the correct application icon that was set in the .desktop file; however, once launched, the application icon does not show on the dock. The default Java icon is shown in place of it.
This is how it looks on Desktop:
But on Dock it shows Java icon:
I'm also not sure why, the correct application name doesn't appear when I hover over the icon on the dock - it names the java launcher instead.
#!/usr/bin/env xdg-open [Desktop Entry] Type=Application Name=NMRViewJ Exec="/home/issac/NMRViewJ/NMRViewJ" Icon=/home/issac/NMRViewJ/.install4j/NMRViewJ.png StartupWMClass = sun-awt-X11-XFramePeer Categories=Application;