问题描述
我当时正在用Netbeans v8.2编码一个项目,突然间它就关闭了.当我重新打开它时,我看到了所附的屏幕.即使我在那儿看到它们,也无法打开任何项目,并且大多数选项现在都显示为灰色.请任何人帮助.我运行MAC OS.请有人能告诉我,我到底是如何还原到旧版本的?
I was in the middle of coding a project in Netbeans v8.2 and all of a sudden it closed down. When I re-opened it I seen the attached screen.I can't open any projects even though I can see them there, and most options are now greyed out. PLEASE anyone help. I run MAC OS. Please can someone tell me how on earth I revert back to an old version?
推荐答案
您无需还原到旧版本的NetBeans.您的屏幕快照显示NetBeans被错误地配置为使用Java 11.0.1,但是您的NetBeans版本(8.2)不支持Java的任何大于1.8的版本.
You don't need to revert back to an old version of NetBeans. Your screenshot shows that NetBeans is incorrectly configured to use Java 11.0.1, but your version of NetBeans (8.2) does not support any version of Java greater than 1.8.
要解决此问题,必须将NetBeans 8.2重新配置为使用JDK 1.8:
To resolve the issue you must reconfigure NetBeans 8.2 to use JDK 1.8:
- 关闭NetBeans.
- 如果尚未安装JDK 1.8,请安装它. (您不需要删除JDK11.)
- 找到文件 netbeans.conf ,该文件位于NetBeans安装目录下的 etc 目录中.
- 在文本编辑器中打开 netbeans.conf ,然后找到包含属性值 netbeans_jdkhome 的行.
-
该行可能以#开头被注释掉.如果是这样,请删除该前导#符号以取消注释该行.然后设置该属性的值,以指定安装的JDK 1.8版本的实际路径,以使该行类似于以下内容:
- Close NetBeans.
- Install JDK 1.8 if it is not already installed. (You don't need to remove JDK 11.)
- Locate the file netbeans.conf, which resides in the etc directory directly under your NetBeans installation directory.
- Open netbeans.conf in a text editor, and locate the line containing the property value netbeans_jdkhome.
The line may be commented out with a leading #. If so, uncomment the line by removing that leading # symbol. Then set the value of that property to specify the actual path to your installed version of JDK 1.8 so that the line looks similar to this:
保存更改并启动NetBeans.
Save your changes and start NetBeans.
如果仍然有问题,您可以尝试做的另一件事是删除用户目录和缓存目录:
If you still have problems, one further thing you could try is to delete your user directory and cache directory:
- 关闭NetBeans.
- 找到并删除您的用户目录和缓存目录.它们的路径显示在与您的问题一起发布的 NetBeans Info 屏幕截图的底部附近.
- 启动NetBeans.
- Close NetBeans.
- Locate and delete your User directory and Cache directory. Their paths are shown near the bottom of the NetBeans Info screen shot posted with your question.
- Start NetBeans.
如果您在完成所有操作后仍然遇到问题,请使用以下方法更新您的帖子:
If you still have problems after doing all that then update your post with:
- 新问题的症状.
- 更新的帮助>关于屏幕截图.
- NetBeans日志(查看> IDE日志)中的任何相关问题.
- The symptoms of the new issue.
- An updated Help > About screen shot.
- Any relevant issues in the NetBeans log (View > IDE Log).
有关NetBeans对不同JDK版本的支持的一个相关观点:
One related point regarding NetBeans support for different JDK versions:
- 如上所述,NetBeans 8.2不支持任何JDK> 8. 最新版本
- Apache NetBeans 9.0 另外还支持JDK 9和JDK 10. /li>
- 即将推出的Apache NetBeans 10也将支持JDK 11.
- As mentioned above, NetBeans 8.2 does not support any JDK > 8.
- Apache NetBeans 9.0, the latest release, additionally supports JDK 9 and JDK 10.
- Apache NetBeans 10, which will be available soon, will also support JDK 11.
这篇关于NetBeans 8.2突然无法在Mac上运行/打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!