NetBeans 8.0.1无法在MacOS Mojave上打开 [英] Netbeans 8.0.1 not opening on MacOS Mojave

查看:133
本文介绍了NetBeans 8.0.1无法在MacOS Mojave上打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Mojave之后,Netbeans 8.0.1不再打开;它显示了启动屏幕,但紧随其后关闭.

After upgrade to Mojave, Netbeans 8.0.1 is not opening anymore ; it shows the splash screen, but closes right after.

它可能必须与JDK更新一起使用;它支持哪个JDK版本以及如何降级JDK

It probably has to be with a JDK update; which JDK version it supports and how can i downgrade the JDK

谢谢!

推荐答案

NetBeans在启动时读取名为 netbeans.conf 的配置文件.它只是一个包含属性的文本文件,位于NetBeans安装中其 etc 目录中.它可能指定的属性之一是通过属性 netbeans_jdkhome 使用的默认JDK的路径.

NetBeans reads a configuration file named netbeans.conf on startup. It is just a text file containing properties, located in its etc directory within the NetBeans installation. One of the properties it might specify is the path to the default JDK to be used via property netbeans_jdkhome.

如果该路径无效(例如,可能是由于Mac上的升级所致),则NetBeans将不会启动;如OP中所述,它将显示启动屏幕,然后关闭.

If that path becomes invalid (e.g. possibly due to upgrading on Mac) then NetBeans won't start; as described in the OP it will display the splash screen then close down.

解决方案只是编辑属性 netbeans_jdkhome ,以指定要使用的JDK的有效路径.

The solution is simply to edit property netbeans_jdkhome to specify a valid path to the JDK that you want to use.

请注意,不一定要在 netbeans.conf 中完全指定 netbeans_jdkhome ,因为NetBeans具有确定默认JDK路径的其他方法.但是,如果指定了 netbeans_jdkhome ,则路径有效是至关重要的.

Note that netbeans_jdkhome is not necessarily specified at all in netbeans.conf, since NetBeans has other ways of determining the default JDK path. But if netbeans_jdkhome is specified it is crucial that the path is valid.

这篇关于NetBeans 8.0.1无法在MacOS Mojave上打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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