简体   繁体   English

Netbeans 10未安装

[英]Netbeans 10 not installing

I'm having issues trying to install NetBean 10 (incubating) on a laptop. 我在尝试在笔记本电脑上安装NetBean 10(正在孵化)时遇到问题。 I've checked that Java is installed, as well as JDK (jdk1.8.0_191). 我已经检查了Java和JDK(jdk1.8.0_191)的安装。 I've checked that Java is installed correctly by going to the command line and typing "java -version" and it correctly responds 我通过转到命令行并键入“ java -version”来检查Java是否已正确安装,并且它可以正确响应

java version "1.8.0_191" Java版本“ 1.8.0_191”
Java(TM)SE Runtime Environment (build 1.8.0_191-b12) Java(TM)SE运行时环境(内部版本1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) Java HotSpot(TM)64位服务器VM(内部版本25.191-b12,混合模式)

I've checked that the environment varible "JAVA_HOME" is correct (echo %JAVA_HOME%), and that the Path variable is correct. 我检查了环境变量“ JAVA_HOME”是否正确(回显%JAVA_HOME%),以及Path变量是否正确。

However when I try installing NetBeans (from the C:\\netbeans10\\bin\\netbeans64.exe) (yes, also double checked the laptop is correctly running Win10 64bit, it is) a logo for netbeans briefly appears, goes away after 1 sec, and nothing else happens. 但是,当我尝试安装NetBeans(从C:\\ netbeans10 \\ bin \\ netbeans64.exe)(是的,还仔细检查了笔记本电脑是否正确运行Win10 64位,是)时,短暂出现了netbeans徽标,在1秒钟后消失,什么也没有发生。

I've tried downloading a fresh NetBeans, reinstalling Java, rebooting the system, disabled anti-virus, disabled firewall, tried from safe boot, however it just does not install. 我尝试下载新的NetBeans,重新安装Java,重新启动系统,禁用防病毒软件,禁用防火墙,从安全启动中尝试过,但是都没有安装。

Anyone have any ideas on what step I'm missing so that I can get this installed? 任何人都对我缺少什么步骤有任何想法,以便可以安装它?

Thanks in advance. 提前致谢。

A possible caused of your problem is that NetBeans is trying to run using a version of Java that does not exist on your machine. 您的问题的可能原因是NetBeans尝试使用计算机上不存在的Java版本运行。 To eliminate this as a possibility: 为了消除这种可能性:

  • Locate the file netbeans.conf . 找到文件netbeans.conf It will be in the etc directory within the NetBeans installation directory. 它将位于NetBeans安装目录内的etc目录中。
  • Open the file in any text editor. 在任何文本编辑器中打开文件。 It is just a properties file containing name/value pairs, 它只是一个包含名称/值对的属性文件,
  • Locate the line containing the text netbeans_jdkhome . 找到包含文本netbeans_jdkhome的行。
  • If the line is commented out delete the leading # character. 如果该行被注释掉,请删除前导字符。
  • Set the value to the actual path to your JDK. 将值设置为JDK的实际路径。 For example, on my machine it would be: netbeans_jdkhome="C:\\Java\\jdk1.8.0_191" . 例如,在我的机器上为: netbeans_jdkhome="C:\\Java\\jdk1.8.0_191"
  • Save the file and (re)start NetBeans. 保存文件并(重新)启动NetBeans。 NetBeans will now use the JDK specified by the netbeans_jdkhome property. NetBeans现在将使用netbeans_jdkhome属性指定的JDK。
  • If NetBeans still doesn't start then update your question with the content of the NetBeans log. 如果NetBeans仍然无法启动,请使用NetBeans日志的内容更新您的问题。 See NetBeans - where to find the IDE log? 请参阅NetBeans-在哪里可以找到IDE日志? for details on locating that file. 有关查找该文件的详细信息。

One other point: although you can run NetBeans 10.0 using JDK 8, I can't think of any good reason to do that. 另一点:尽管您可以使用JDK 8运行NetBeans 10.0,但我认为没有足够的理由这样做。 Most users will probably download and install JDK 11, and use that instead. 大多数用户可能会下载并安装JDK 11,并改用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM