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

查看:165
本文介绍了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:\Java\openJDK\jdk-11.0.2"

netbeans_jdkhome="C:\Java\openJDK\jdk-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天全站免登陆