Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed NetBeans 7.2.1 from via the .sh file but I deleted the launcher from the main menu (alacarte) because I wanted to move it to another section of the menu and now I can't run it so I would appreciate it if someone could tell me which command I could run from the terminal to run it. I'm running 12.10.

I've already attempted asking the question on NetBeans forums but I can't log in so I thought I would ask it here.

share|improve this question
up vote 2 down vote accepted

I found the answer to my own question by looking at the command to launch the desktop icon, which was the code given below.

Copy and paste the following into terminal: (ctrl+alt+T)

/bin/sh "/home/username/netbeans-7.2.1/bin/netbeans"
share|improve this answer

Going to /usr/local/netbeans-7.2.1/bin/, if you did not installed it with root privileges the path is different: /home/YOURUSER/netbeans-7.2.1/bin/. Into the /bin directory you will find the netbeans executable.

share|improve this answer
Oh, sorry, at the moment I was writting the answer you already found the solution, I just didn't see, but nice you find the answer yourself ^.^ – Rodrigo Martins Dec 20 '12 at 20:10
Good attempt anyway I would never have thought of that. – Brenton Horne Dec 20 '12 at 20:13

Save the following into a file (file name below), change user to your user:

[Desktop Entry]
Name=NetBeans IDE 7.2.1
Comment=The Smarter Way to Code
Exec=/bin/sh "/home/user/netbeans-7.2.1/bin/netbeans"

Next save the files as /home/user/Desktop/netbeans-7.2.1.desktop

You should be able to move the file to the start bar or just double click it on the desktop.

share|improve this answer

Your Answer


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.