简体   繁体   English

由于找不到java.awt.AWTError和辅助技术,因此无法在Ubuntu上安装Netbeans 8.2

[英]Cannot install Netbeans 8.2 on Ubuntu due to java.awt.AWTError and Assistive Technology not found

I have recently installed Netbeans 8.2 on Ubuntu and it has run. 我最近在Ubuntu上安装了Netbeans 8.2,它已经运行了。 But after a while not using it, when I clicked on netbeans shortcut, it just appeared the loadding windows and then it's off, nothing else happened. 但是一段时间不使用它之后,当我单击netbeans快捷方式时,它只是出现了正在加载的窗口,然后关闭了,什么都没有发生。 So I decided to reinstall it. 因此,我决定重新安装它。 But now when I'm using Terminal to run the netbeans-8.2-linux.sh file, an "Critical error" box appear and say: "An unexpected exception happened in thread main. Exception: java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper" Error message 但是现在当我使用终端运行netbeans-8.2-linux.sh文件时,出现“严重错误”框,并说:“线程主线程中发生意外异常。异常:java.awt.AWTError:辅助技术没有找到:org.GNOME.Accessibility.AtkWrapper“ 错误消息

And then I check my javac version: 然后我检查我的javac版本:

~$ javac -version
javac 1.8.0_181

Now I can't install Netbeans, really need your help. 现在我无法安装Netbeans,真的需要您的帮助。 Thanks a lot. 非常感谢。

I've had the same issue with Kubuntu 18.04 when launching Umlet this morning. 今天早上启动Umlet时,我在Kubuntu 18.04中遇到了相同的问题。 It appears to be caused by an unattended security upgrade for the openjdk packages. 它似乎是由openjdk软件包的无人值守安全升级引起的。

The answer by rdrever to this askubuntu SE question fixed the error. 由rdrever回答的这个askubuntu SE问题解决了该错误。

Quoting the fix: 引用修复程序:

This can be done by editing the accessibility.properties file for OpenJDK:
sudo vim /etc/java-8-openjdk/accessibility.properties
Comment out the following line:
assistive_technologies=org.GNOME.Accessibility.AtkWrapper

Hope this helps. 希望这可以帮助。

暂无
暂无

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

相关问题 线程“main”中的异常 java.awt.AWTError:未找到辅助技术 - Exception in thread "main" java.awt.AWTError: Assistive Technology not found 线程“main”中的异常 java.awt.AWTError:未找到辅助技术:com.sun.java.accessibility.AccessBridge 错误 - Exception in thread “main” java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.AccessBridge error 创建BoxLayout时java.awt.AWTERROR - java.awt.AWTERROR When Creating a BoxLayout 线程“main”java.awt.AWTError中的异常:BoxLayout无法共享 - Exception in thread “main” java.awt.AWTError: BoxLayout can't be shared java.awt.AWTError:无法使用“:0”作为DISPLAY变量的值连接到X11窗口服务器 - java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable - java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable jshell:线程“ main”中的异常java.awt.AWTError:无法使用“:0”作为DISPLAY变量的值连接到X11窗口服务器 - jshell : Exception in thread “main” java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable 线程“主”中的异常java.awt.AWTError:无法使用':0.0'作为DISPLAY变量的值连接到X11窗口服务器 - Exception in thread “main” java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable Netbeans 8.2 Java:试图访问java.awt.Shape.contains()的不可编译代码 - Netbeans 8.2 Java: Uncompilable code trying to access java.awt.Shape.contains() 未找到辅助技术:org.GNOME.Accessibility.AtkWrapper - Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM