I have installed NetBeans 7.0 manually, because only 6.9 is available in Ubuntu Software Center.
I tried to keep it in launcher, but after system restart it's gone.
How can I permanently add it?
I have installed NetBeans 7.0 manually, because only 6.9 is available in Ubuntu Software Center.
I tried to keep it in launcher, but after system restart it's gone.
How can I permanently add it?
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.
dconf-tools
and run dconf-editor
and on desktop>unity> favourites section see if netbeans is there or not. You can add netbeans.desktop path there and set it to default may be.
May 19, 2011 at 9:10
'Java Ayatana' plugin for Netbeans solve the following problems ( tested on 12.04 64bit)
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.
Following @sagarchalise's answer, here's a working (~/.local/share/applications/netbeans.desktop) contents for NB 7.0.1 on Ubuntu 11.04:
[Desktop Entry]
Name=Netbeans
Comment=Netbeans IDE
Exec=/usr/local/netbeans-7.0.1/bin/netbeans
Icon=/usr/local/netbeans-7.0.1/nb/netbeans.png
Terminal=false
Type=Application
Categories=Development,IDE;
StartupNotify=false
You can use this NetBeans plugin!
http://ubuntuone.com/4T3EB9MnJVqxrEE494oLyi
It is very useful!
Original page: http://danjared.blogspot.com/2011/10/unity-launcher.html
This is a bug in BAMF:
I am on Ubuntu 14.10 with Netbeans 8.0 and Docky 2.0
I was able to solve the problem by doing the following steps from: http://wiki.go-docky.com/index.php?title=How_to_Customize_Window_Matching
1 Create netbeans.desktop file for Netbeans something like this (adjust for your netbeans path, version, etc.)
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Netbeans 8.0
Comment=Java IDE
Exec=/bin/sh "/home/your/path/to/netbeans/bin/netbeans"
Icon=/home/your/path/to/netbeans/nb/ntebeans.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0
StartupWMClass=REPLACE_ME
2 Start Netbeans
3 Open a terminal window and run:
xprop | grep WM_CLASS | awk '{print $4}'
4 A crosshair cursor will be displayed, click on netbeans window
The WMClass for the window should be printed in terminal, for me this was:
"netbeans-8.0"
6 In the netbeans.desktop set the value for StartupWMClass like so:
StartupWMClass=netbeans-8.0
7 Save the file and copy to;
/usr/share/applications
8 Exit Docky
8.5 optional step: delete the docky desktop cache in
~/.cache/docky/docky.desktop.*.cache
9 Start Docky
10 Drag your netbeans.desktop file from /usr/share/applcations in nautilus (etc.) into docky
11 Start up netbeans and see what happens :D
For the current NetBeans 11 version, installed in /opt
Also changed the default icon from the tiny .png file meant for Windows, to the larger .icns file meant for MacOSX. This looks much better in the launcher. Also had to fix the StartupMWClass= to prevent 2 icons from showing.
[Desktop Entry]
Name=Apache NetBeans IDE 11.0
Keywords=cpp,java
Exec=/opt/netbeans/bin/netbeans
Icon=/opt/netbeans/nb/netbeans.icns
Terminal=false
Type=Application
Categories=Development,Java,IDE
StartupWMClass=Apache NetBeans IDE 11.0
Just save the above as ~/.local/share/applications/netbeans.desktop