Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

6 Answers

'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.

share|improve this answer
    
I installed it and now my NetBeans is broken. Crashes after startup. Any idea how I can remove this plugin by hand? –  umpirsky Apr 21 '12 at 15:24
    
People, don't install this! I installed it and now I can't run NetBeans at all. –  umpirsky Apr 21 '12 at 15:39
    
Fixed, thanks to blogs.oracle.com/gridbag/entry/… –  umpirsky Apr 21 '12 at 15:53
    
I'm on ubuntu 12.04 64bit, I can confirm this:code.google.com/p/java-swing-ayatana is working I have Netbeans menu as global menu and the icon in the launcer. So it is perfectly integrated Please remove -1 vote. Note: I have java 7 from sun and I had to do that : sudo ldconfig /usr/lib/jvm/java-7-oracle/jre/lib/amd64/ –  Postadelmaga May 8 '12 at 9:03
    
OK, I removed -1 vote, but I'll not risk again :) –  umpirsky May 8 '12 at 13:40
show 8 more comments

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
share|improve this answer
add comment

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.

share|improve this answer
2  
Hi, This plugin is obsolete, I recommend removing this plugin and install a new Java Ayatana Plugin plugins.netbeans.org/plugin/41822 –  danjaredg May 8 '12 at 17:08
add comment

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

share|improve this answer
    
Yes, I use it already. But what to do with tvtime or gedit when you open some text file from remote location from nautilus. Same problem occurs. This should be fixed in unity, as in other launchers for ubuntu. –  umpirsky Oct 24 '11 at 9:14
    
Still problems after upgrade to NetBeans 7.1, any idea? –  umpirsky Jan 20 '12 at 13:43
add comment

This is a bug in BAMF:

share|improve this answer
    
I wonder will someone fix this... –  umpirsky May 21 '11 at 18:12
add comment

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

share|improve this answer
    
Thanks for your answer, but I already have netbeans-7.0.desktop file with content - cat netbeans-7.0.desktop [Desktop Entry] Encoding=UTF-8 Name=NetBeans IDE 7.0 Comment=The Smarter Way to Code Exec=/bin/sh "/home/umpirsky/Applications/netbeans-7.0/bin/netbeans" Icon=/home/umpirsky/Applications/netbeans-7.0/nb/netbeans.png Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0 –  umpirsky May 19 '11 at 8:01
    
Installs 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. –  sagarchalise May 19 '11 at 9:10
    
Thanks again. It is not there. Isn't this a bug? –  umpirsky May 19 '11 at 9:54
    
add it and see if it exists or not after logout. It may be a bug. –  sagarchalise May 19 '11 at 10:30
    
Does not exist. Reported bugs.launchpad.net/ubuntu/+bug/785095 –  umpirsky May 19 '11 at 11:07
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.