线程AWT-EventQueue-0 / Netbeans Install中发生意外异常

时间:2017-11-15 09:42:33

标签: java netbeans install

遇到我的Netbeans 8.2中的错误后,我尝试重新安装它。但是,安装始终会停止,并显示以下消息:

enter image description here

我将日志内容复制到Pastebin,因为它超出了Stackoverflows 30k字符限制。 https://pastebin.com/raw/tdrUGKhE 我认为这是最相关的部分:

[2017-11-15 10:07:59.153]: An unexpected exception happened in thread AWT-EventQueue-0
[2017-11-15 10:07:59.154]: java.lang.NullPointerException
[2017-11-15 10:07:59.154]:  at sun.awt.shell.Win32ShellFolder2.access$200(Unknown Source)
[2017-11-15 10:07:59.154]:  at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
[2017-11-15 10:07:59.154]:  at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
[2017-11-15 10:07:59.154]:  at java.util.concurrent.FutureTask.run(Unknown Source)
[2017-11-15 10:07:59.154]:  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[2017-11-15 10:07:59.154]:  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[2017-11-15 10:07:59.154]:  at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
[2017-11-15 10:07:59.154]:  at java.lang.Thread.run(Unknown Source)
[2017-11-15 10:07:59.155]: ... show message dialog
[2017-11-15 10:07:59.155]:     title: Critical Error
[2017-11-15 10:07:59.155]:     message: An unexpected exception happened in thread AWT-EventQueue-0
[2017-11-15 10:07:59.155]:     
[2017-11-15 10:07:59.155]:     Exception:
[2017-11-15 10:07:59.155]:       java.lang.NullPointerException:
[2017-11-15 10:07:59.155]:       null   

尝试使用Java 6或使用Netbeans + JDK软件包安装Netbeans 7.0.1会产生类似的结果。

编辑: 解决了!来自Java的东西必须安装在网络驱动器上,如果不使用VPN连接,我无法访问。连接到网络后,安装成功。

1 个答案:

答案 0 :(得分:0)

如果有人仍在寻找解决此错误的方法,我发现我的regedit上缺少一个条目,我只是添加了以下密钥,它就可以了。

计算机\ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Desktop \ NameSpace {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}

Regedit Picture, missing entry