I succeeded in changing the poor default icon of NetBeans (32x32), which appears in window switcher (Alt+Tab), to HD one (128x128) when started from Launcher by clicking it, but still unable to make it when launched from a keyboard shortcut ("/bin/sh netbeans") or terminal (just enter "netbeans").
I searched the whole system and replaced every suspicious .png file so I even have no idea where the 32x32 icon comes from. I've also tried modifying "Icon=..." line in .desktop file (How can I change the icon of an application in the Unity launcher?), "xdg-icon-resource install ..." thing (How to package an application icon properly?), and alacarte (How do I add an application to the dash?), but still fail.
Is there any possible way of doing it? Or, is there any appropriate command of invoking it as if it were clicked from Launcher? (<=> let .desktop to be considered)?
I'm on Ubuntu 14.04 LTS.
Thank you.