错误:无法使用JDK 8启动NetBeans 7.3 [英] Bug: Can not start NetBeans 7.3 with JDK 8
问题描述
我有NetBeans 7.3
,并且将我的JDK升级到了1.8
.现在,我尝试打开NetBeans,并在其加载窗口中收到Loading Cached Objects
消息,然后NetBeans被终止.
I have NetBeans 7.3
and I upgraded my JDK to 1.8
. Now I tried to open NetBeans and was getting Loading Cached Objects
message on its loading window and then NetBeans got terminated.
我遇到以下异常(在\ var \ log \ messages.log文件中可用):
I was getting following exception (available in \var\log\messages.log file):
java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
可能的原因是什么?
推荐答案
它是NetBeans 7.3中的一个错误,其详细信息可以找到
Its a bug in NetBeans 7.3 and the details of this can be found here.
JDK 8与 Netbeans 8+ 一起使用.
JDK 8 works with Netbeans 8+.
如果您希望继续将Netbeans 7.x与旧版Java结合使用,请执行以下步骤,以恢复netbeans中的JDK位置:
If you wish to continue using Netbeans 7.x with older version of Java revert JDK location in netbeans using following steps:
- 转到内部的NetBeans安装目录,您将找到
/etc
文件夹 - 打开etc文件夹的
netbeans.conf
文件 - 将路径更改为针对
netbeans_jdkhome
属性指定的jdk早期版本.现在打开您的NetBeans,它将起作用.
- Go to NetBeans installation inside you will find
/etc
folder - Open
netbeans.conf
file of etc folder - Change the path to earlier jdk version which is specified against
netbeans_jdkhome
property. Now open your NetBeans it will work.
这篇关于错误:无法使用JDK 8启动NetBeans 7.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!