本文介绍了Netbeans 10 未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试在笔记本电脑上安装 NetBean 10(正在孵化)时遇到问题.我已经检查过是否安装了 Java 以及 JDK (jdk1.8.0_191).我已经通过转到命令行并输入java -version"来检查 Java 是否已正确安装,并且它正确响应

I'm having issues trying to install NetBean 10 (incubating) on a laptop. I've checked that Java is installed, as well as 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 版本1.8.0_191"
Java(TM)SE 运行时环境(构建 1.8.0_191-b12)
Java HotSpot(TM) 64 位服务器 VM(构建 25.191-b12,混合模式)

java version "1.8.0_191"
Java(TM)SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

我已检查环境变量JAVA_HOME"是否正确(回显 %JAVA_HOME%),并且 Path 变量是否正确.

I've checked that the environment varible "JAVA_HOME" is correct (echo %JAVA_HOME%), and that the Path variable is correct.

但是,当我尝试安装 NetBeans(来自 C:\netbeans10\bin\netbeans64.exe)(是的,还仔细检查了笔记本电脑是否正确运行了 64 位 Win10,它是)短暂出现了 netbeans 的徽标,之后消失1 秒,没有其他反应.

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,重新安装 Java,重新启动系统,禁用防病毒,禁用防火墙,尝试从安全启动,但它只是没有安装.

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.

有人对我遗漏的步骤有任何想法,以便我可以安装它吗?

Anyone have any ideas on what step I'm missing so that I can get this installed?

提前致谢.

推荐答案

您的问题的一个可能原因是 NetBeans 正在尝试使用您的计算机上不存在的 Java 版本运行.为了消除这种可能性:

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. To eliminate this as a possibility:

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

另外一点:虽然您可以使用 JDK 8 运行 NetBeans 10.0,但我想不出有什么好的理由这样做.大多数用户可能会下载并安装 JDK 11,然后使用它.

One other point: although you can run NetBeans 10.0 using JDK 8, I can't think of any good reason to do that. Most users will probably download and install JDK 11, and use that instead.

这篇关于Netbeans 10 未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 13:01