zoukankan      html  css  js  c++  java
  • Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibilit

    系统环境

    Ubuntu 20.04 focal


    问题分析

    该异常出现的原因,从谷歌上可以得到答案

    one of the more common causes of this exception is a missing or corrupt installation of a Java Access Bridge. In this case, the following access bridge has been defined in standard configuration file (JDK_HOME/jre/lib/accessibility.properties):

    com.sun.java.accessibility.AccessBridge
    

    But it won't actually be operative unless the required installation is complete. Note that the standard access bridge implementation does not come packages with the SDK. To fix your particular issue, download and install the Oracle Access Bridge by following instructions from their setup page. That should resolve the startup error occurring in your program.


    根据上述内容,我们可以在Oracle官网下载安装这个 Java Access Bridge解决此问题,安装说明 setup page.

    当然,也可以直接禁用掉这个assistive technology,因此,最行之有效且方便的解决方案如下(对于通过apt安装的openjdk而言):

    文件
    /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/accessibility.properties

    注释掉

    # assistive_technologies=org.GNOME.Accessibility.AtkWrapper
    
  • 相关阅读:
    包导入基础知识
    怎么创建模块?
    reload基础
    重载模块概念及意义
    导入和作用域 #596
    属性名的点号运算
    模块命名空间
    from会存在潜在的陷阱
    如何通过from语句调用模块的变量名?
    如何调用模块的变量名?
  • 原文地址:https://www.cnblogs.com/ssjxx98/p/13480308.html
Copyright © 2011-2022 走看看