Netbeans 10.0 无法在 Windows 10 操作系统中启动 [英] Netbeans 10.0 doesn't start in Windows 10 OS

查看:19
本文介绍了Netbeans 10.0 无法在 Windows 10 操作系统中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了 Netbeans 10.0 并且在 Windows 10 64 位上它不会在我执行 netbeans64.exe 时启动(即使使用 netbeans.exe)

I've just downloaded Netbeans 10.0 and on a Windows 10 64 bit it doesn't start when i execute netbeans64.exe (not even with netbeans.exe)

我删除了所有 java 安装并安装了 jdk-11.0.2+9jdk-11.0.2+9-jre.

I removed all the java installations and installed jdk-11.0.2+9 and jdk-11.0.2+9-jre.

同时将netbeans配置文件中的路径改为正确的java路径.

Also change the path in the netbeans configuration file to the right java path.

配置环境变量PATHJAVA_HOME.

运行应用程序时什么也没有发生.

When run the app nothing happens.

其他人有同样的问题吗?

Somebody else with same issue?

推荐答案

我怀疑在您安装 NetBeans 时,您要么没有有效的 Java 安装,要么在安装 NetBeans 10.0 后更改了 Java 安装.在这种情况下,NetBeans 可能无法启动.

I suspect that at the time you installed NetBeans you either had no valid Java installation, or you have changed your Java installation(s) since you installed NetBeans 10.0. In that scenario NetBeans may be unable to start.

要消除这种可能性,请在启动 NetBeans 时明确指定要使用的 Java 版本:

To eliminate this as a possibility, explicitly specify the version of Java to be used when starting NetBeans:

  • 找到文件 netbeans.conf.它位于 NetBeans 安装目录中的 etc 目录中.
  • 这是一个包含名称值对的简单属性文件,注释行以 # 字符开头.在任何文本编辑器中打开文件.
  • 找到包含文本 netbeans_jdkhome= 的行.如果该行以 # 字符开头,则删除该字符以取消注释该行.
  • 将该属性的值设置为您希望 NetBeans 使用的 JDK 的路径.例如,在我的 Windows 10 机器上,该行如下所示:

  • Locate the file netbeans.conf. It resides in the etc directory within your NetBeans installation directory.
  • It is a simple properties file containing name value pairs, with commented lines starting with a # character. Open the file in any text editor.
  • Locate the line containing the text netbeans_jdkhome=. If that line starts with a # character then delete that character to uncomment the line.
  • Set the value of that property to the path of the JDK that you want NetBeans to use. For example, on my Windows 10 machine the line looks like this:

netbeans_jdkhome="C:JavaopenJDKjdk-11.0.2"

将更改保存到 netbeans.conf 后,尝试重新启动 NetBeans.

Try restarting NetBeans once you have saved your change to netbeans.conf.

这篇关于Netbeans 10.0 无法在 Windows 10 操作系统中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆