How do I add Netbeans to the Unity launcher?

Create a netbeans.desktop file with somewhat following content in your $HOME/.local/share/applications/ folder(If not present create it). And drag and drop the netbeans.desktop file to your launcher. I am doing the same with eclipse. If you want netbeans to be available to othe users as well you can create the desktop file in /usr/share/applications as well.

[Desktop Entry]
Name=Netbeans
Comment=Netbeans IDE
Exec=path/to/executable i.e. $HOME/netbeans/netbeans
Icon=netbeans
Terminal=false
Type=Application
Categories=Development,IDE;
StartupNotify=false

Make sure you have correct path and keep in launcher is checked. enter image description here


'Java Ayatana' plugin for Netbeans solve the following problems ( tested on 12.04 64bit)

  • adds global menu
  • fixes launcher

How to install:

1) in Tools -> Plugins -> Settings add http://java-swing-ayatana.googlecode.com/files/netbeans-catalog.xml

now look for: 'Java Ayatana' Tools -> plugin -> Avariable plugin

2) or install manually from: http://code.google.com/p/java-swing-ayatana/

On 64bit with oracle java 7 if you experience this problem:

libjawt.so cannot open shared object file no such file

do this:

sudo ldconfig /usr/lib/jvm/java-7-oracle/jre/lib/amd64/

Thank you Dan Jaren for this plugin

Update:

On NetBeans 7.2RC1 launcher works fine by default. 'Java Ayatana' 's global menu integration works fine too.


The answer of Kacharov is good (very good), but the Ubuntu Unity Launcher Plugin of Netbeans is already on Netbeans plugin and Google project website.

http://plugins.netbeans.org/plugin/40321/ubuntu-unity-launcher
http://code.google.com/p/nbs-unity-launcher/

To make it more formal.