简体   繁体   English

错误:无法使用JDK 8启动NetBeans 7.3

[英]Bug: Can not start NetBeans 7.3 with JDK 8

I have NetBeans 7.3 and I upgraded my JDK to 1.8 . 我有NetBeans 7.3并将JDK升级到1.8 Now I tried to open NetBeans and was getting Loading Cached Objects message on its loading window and then NetBeans got terminated. 现在,我尝试打开NetBeans,并在其加载窗口中收到“ Loading Cached Objects消息,然后NetBeans被终止。

I was getting following exception (available in \\var\\log\\messages.log file): 我收到以下异常(在\\ var \\ log \\ messages.log文件中可用):

java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"

What is the probable reason? 可能是什么原因?

Its a bug in NetBeans 7.3 and the details of this can be found here . 它是NetBeans 7.3中的一个错误,有关详细信息,请参见此处

JDK 8 works with Netbeans 8+ . JDK 8可与Netbeans 8+一起使用

If you wish to continue using Netbeans 7.x with older version of Java revert JDK location in netbeans using following steps: 如果您希望继续将Netbeans 7.x与旧版Java结合使用,请执行以下步骤来恢复netbeans中的JDK位置:

  • Go to NetBeans installation inside you will find /etc folder 转到NetBeans安装里面,您将找到/etc文件夹
  • Open netbeans.conf file of etc folder 打开etc文件夹的netbeans.conf文件
  • Change the path to earlier jdk version which is specified against netbeans_jdkhome property. 将路径更改为针对netbeans_jdkhome属性指定的jdk早期版本。 Now open your NetBeans it will work. 现在打开您的NetBeans。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM