NetBeans 8.1 Activation Failure

你说的曾经没有我的故事 提交于 2019-11-27 01:52:25

问题


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?


回答1:


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




回答2:


Just in case, I solved this just by commenting out the following line;

netbeans_jdkhome="/usr"

To

#netbeans_jdkhome="/usr"

Edit:

The directory of the above code is inside the file ~/netbeans-8.1/etc/netbeans




回答3:


1) uninstall Netbeans & download JDK 8 http://www.oracle.com/technetwork/java/javase/downloads/index.html from Here

2) Extract JDK to /home/username/

3) Download Netbeans https://netbeans.org/downloads/

4) Install Netbeans from terminal follow this tutorial

5) Installation asks jdk location then browse to /home/username/jdk1.8.0_91

problem solved.....




回答4:


I had the same exact issues,what I have done is :-1

  1. uninstall net-beans, 2.I already have Oracle Java 8 installed. 3.install net-beans back and make sure to select Oracle Java 8 jdk during the installation .



回答5:


Make sure that right JDK directory chosen in the installation wizard if you not sure you can change it from C:\Program Files\NetBeans {netbeans version}\etc you will see a file which is netbeans.conf edit it(I am using Notepad++ for that) At the bottom of the file, you will see a line netbeans_jdkhome="C:\Program Files\Java\{jdk directory you want}" make sure it is valid JDK and it is JDK, not JRE



来源:https://stackoverflow.com/questions/33868896/netbeans-8-1-activation-failure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!