简体   繁体   中英

Bug: Can not start NetBeans 7.3 with JDK 8

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.

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"

What is the probable reason?

Its a bug in NetBeans 7.3 and the details of this can be found here .

JDK 8 works with Netbeans 8+ .

If you wish to continue using Netbeans 7.x with older version of Java revert JDK location in netbeans using following steps:

  • 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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