Ubuntu – Unable to Install Netbeans 8.1

14.04netbeans

I am running the 64bit version of Ubuntu 14.04 desktop and when I run the netbeans installer (PHP version) I get the following error message:

Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
netbeans-8.1-php-linux-x64.sh: 1: eval: /tmp/.nbi-4114443.tmp/jre-8u60-linux-x64.bin: Permission denied
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.

When I checked the wiki, it tells me:

On Debian-based 64bit distributions (such as Ubuntu) it is usually enough to install the ia32-libs package to successfully start the bundled 32bit installer. 

When I try running

sudo apt-get install ia32-libs

I get the error:

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate

So then I run

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

… and then I execute the installer and get the same darn error message:

Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
netbeans-8.1-php-linux-x64.sh: 1: eval: /tmp/.nbi-4114845.tmp/jre-8u60-linux-x64.bin: Permission denied
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.

What do I need to do in order to install netbeans 8.1 on Ubuntu 14.04 (64 bit)?

System State

Output of uname -a:

Linux stuart-home 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

Update 07-11-2015

Ive since tried installing Java 9 but that didn't work either.


Update 08-11-2015

As a workaround, it appears that the full netbeans download works. This type of netbeans installation only has one download option rather than 1 for x86 and 1 for x64. I wonder if it is related to that or just the PHP version has a bug?

enter image description here

For now, I'm going to leave it at that and use the full version, but I would be keen to see if there is an actual solution for those of us who just want the minimal PHP installation.

Best Answer

I had same problem (NetBeans 8.1, Debian 8.1).

In /etc/fstab I removed "noexec" parameter in /tmp definition, remount /tmp and now it works. (missing execution permission) ;)

Related Question