Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 520  / 1 Year ago, mon, december 26, 2022, 2:15:15

I'm a newbie Ubuntu 14.04 User. I need Netbeans to develop software so I decided to install the 8.0.1 version. Since the pkg installer doesn't have the latest version, I downloaded the .sh file from the Official Site. Thus I install it in a very simple way, putting it in /usr/local directory as well.
Now there is a problem, typing "netbeans" in bash doesn't work and it says:



The program 'netbeans' is currently not installed. 
You can install it by typing:


sudo apt-get install netbeans



Of course, with the suggested command I will install the old version of the program, instead of the 8.0.1 one.
Despite that, typing "netbeans" in the ubuntu search bar works without mistakes.



How can fix this problem? Should I install the program in another directory?
Thanks for your kindness.


More From » 14.04

 Answers
7

/usr/local/ itself isn't in the default path, /usr/local/bin is.



Move your launch script there and it should be picked up.






In your case, you're installing the entire thing into /usr/local/netbeans-<VERSION>/. This includes a launcher script in ./bin/netbeans. The simple fix for you is to just symlink to that launcher from somewhere in the path:



sudo ln -s /usr/local/netbeans-8.0.1/bin/netbeans /usr/local/bin/


Then netbeans will launch that script. You'll need to update the symlink when you upgrade Netbeans.


[#22802] Wednesday, December 28, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eighethod

Total Points: 358
Total Questions: 112
Total Answers: 119

Location: Cayman Islands
Member since Fri, Mar 4, 2022
2 Years ago
eighethod questions
;