NetBeans 8.1 Activation Failure

kylas picture kylas · Nov 23, 2015 · Viewed 34.4k times · Source

I am trying to install NetBeans 8.1 on my Ubuntu 14.04.3 LTS. When I try to create a new project, it shows an error, saying that "not all requested modules can be enabled". I tried activating it from the plugins, but to no avail.

Why is this happening, and what can I do to resolve it?

Check the screenshot here

Answer

Sergey Dreger picture Sergey Dreger · Nov 23, 2015

I had the same problem with NetBeans 8.1 on Linux Mint 17.2 and I found the solution (during install a have chosen wrong JDK directory).

If a compatible JDK installation cannot be found, you might need to manually add a path to the JDK installation directory by doing the following:

  1. Open the netbeans.conf file located in the netbeans/etc directory in a text editor.
  2. Enter the location of a compatible JDK installation for the netbeans_jdkhome option. The default location in Windows is C:\Program Files\Java\jdk1.7.0_67 or similar.
    In my case: /usr/lib/jvm/java-8-oracle/
  3. Save the netbeans.conf file and run the executable file in the netbeans/bin directory.

https://netbeans.org/community/releases/81/install.html#install_zip