3

I have the installation file netbeans-8.1-linux.sh in the Others folder of Downloads.

Now when I am using the command from the Netbeans official site to make the installer file executable i.e.

chmod +x <netbeans-8.1-linux.sh>

It is showing the following error

bash: syntax error near unexpected token `newline'

So what do I have to do?? Do I have to use the sudo command means like this

sudo./Downloads/Others/chmod +x <netbeans-8.1-linux.sh>

but it's showing the same error. So if anyone could help

1 Answer 1

4

First get the installer

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh

Now give it executable permissions

chmod +x netbeans-8.1-linux.sh

Now to execute it run from its directory

sudo sh netbeans-8.1-linux.sh

This will start the installer

As requested in comments, here is a one liner

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh && chmod +x netbeans-8.1-linux.sh && sudo sh netbeans-8.1-linux.sh

Alternatively there is an old version in the repository’s, you can install with one command

sudo apt-get install netbeans
15
  • It is showing this error. Installer file /home/coder/Downloads/Others/netbeans-8.1-linux.sh seems to be corrupted. Now what to do? Jan 8, 2016 at 17:09
  • Download it again, it works fine for me, something must of gone wrong.
    – Mark Kirby
    Jan 8, 2016 at 17:20
  • Ok..isn't there any terminal commands through which I can get the latest netbeans ??If there are then please let me know..@mark Jan 8, 2016 at 17:24
  • Please tell me what language you wish to use netbeans for, so I can get you the correct one you want
    – Mark Kirby
    Jan 8, 2016 at 17:30
  • But I want to use netbeans for java,html and sometimes c programming too..It will be better if you could tell me to install the entire package directly so that I could use all the languages which are provided by netbeans. Jan 8, 2016 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .