Fix the desktop/menu entries for netbeans to point to the "netbeans" binary instead of the wrapper script, but leave the wrapper script for those who want to start it with special settings.
Fix the desktop/menu entries for x11-wm/emerald and rebuild