I've googled around and it seems that I'm not the only one with the problem, however I couldn't find the solution. Maybe someone around here has figured it out.
The problem is that netbeans.exe is actually a stub which is calling javaw.exe. When I try to pin the NetBeans process to the taskbar I actually pin "Java(TM) Platform SE Binary". That changes the icon and the pin doesn't work.
The funny thing is that it works on another machine. I don't know whether it's because it's a different version of NetBeans, or a different version of Java.
Has anyone figured this out?
Added: I know this is sort of not programming related; on the other hand there are plenty of topics around here about how to better your programming environment, and this one is no worse than those.
Oh, and btw - Windows 7 Enterprise x64; Java JDK 1.6.17; Netbeans 6.8