Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed netbeans in Ubuntu Linux 11.04 as root.

It installed completely but after logging out as root and logging in as a normal administrator, Netbeans doesn't show in applications and neither does it show on the desktop using a shortcut.

However when I try to reinstall the application says its already installed. What should I do to make it show in the applications panel of a normal user or even create a shortcut?

share|improve this question
add comment

migrated from stackoverflow.com May 1 '12 at 1:46

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

This is how to create desktop shortcut. You can copy this content but you have to correct paths, especially version of Netbeans

  1. create file netbeans.desktop in your Desktop directory cd ~/Desktop; touch netbeans.desktop

  2. insert this content to that file but correct paths

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Name=NetBeans IDE 7.1.1
Comment=The Smarter Way to Code
Exec=/bin/sh "/usr/local/netbeans-7.1.1/bin/netbeans"
Icon=/usr/local/netbeans-7.1.1/nb/netbeans.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

You can run for example this command gedit netbeans.desktop. That should work

share|improve this answer
    
Thanks. I appreciate. –  Ukavi Apr 30 '12 at 9:37
1  
Don't forget to make the desktop file executable, otherwise cautious-laucnher won't run it. –  user268396 Apr 30 '12 at 15:17
add comment

You should not install it as root!

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