How to pin NetBeans to Windows 7 taskbar?
Problem found, although not exactly solved. Here's the description:
Netbeans.exe is a custom launcher written in C++. It's a 32-bit module. When it loads, it first tries to load Java as a DLL into itself and then start NetBeans. However, if the Java runtime is 64-bit, it cannot do that because a 32-bit module cannot load a 64-bit module and vice-versa. Thus it falls back to starting Java as a separate process (javaw.exe) with the right parameters.
On the machine where "everything works" I had installed a 32-bit Java runtime, but on the "faulty machine" I had installed the full 64-bit JDK.
So in essence I see three possible solutions:
- Uninstall the 64-bit Java and install 32-bit;
- Try to compile the launcher as a 64-bit module (who knows if that will work, probably not without modifications);
- Make a shortcut directly to javaw.exe with all the right parameters (those can be found in the Task Manager).
You can pin NetBeans to the taskbar and take advantage of other Windows 7 features by using free SevenBeans module.