Assistive technology not found AWTError

136

Solution 1

I ran into this same error on my Ubuntu 15.10 server but did not want to install the non-headless version of OpenJDK due to the number of additional dependencies. A simpler solution was to simply disable assistive technologies.

This can be done by editing the accessibility.properties file for OpenJDK 8 (change the version to whichever is actually in use on your system):

sudo vim /etc/java-8-openjdk/accessibility.properties

Comment out the following line:

#assistive_technologies=org.GNOME.Accessibility.AtkWrapper

Also you can edit this line programmatically:

sudo sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties

Solution 2

Read the following thread. I managed to escape this problem by uninstalling OpenJDK 8 headless and installing OpenJDK 8.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798794

Commands I ran:

sudo dpkg -l | grep openjdk  

This is to verify you are actually running the headless version of JAVA, so no graph library available.

sudo apt-get remove openjdk-8-jre-headless

This is to remove headless version.

sudo apt-get install openjdk-8-jre

This is to install non-headless version of java.

Solution 3

For those who do not have root access on their machines to change the configuration file or do not want to install the full JRE: append -Djavax.accessibility.assistive_technologies=" " to your command, e.g.

$ java -jar aprof-plot.jar -Djavax.accessibility.assistive_technologies=" "

Do note that the " " is important, simply using "nothing" as parameter will cause the JRE to still load whatever is set in /etc/java-8-openjdk/accessibility.properties.

Solution 4

Same issue. In my case I couldn't run FastQC.
This is what I did:

$ sudo apt-get remove openjdk-11-jre-headless

I verified java was gone

$ java -version
bash: /usr/bin/java: No such file or directory
$ sudo apt-get install openjdk-8-jre

Problem solved.

Solution 5

I had to uninstall openjdk-11-jre, eg:

sudo apt remove openjdk-11-jre

or

sudo apt remove openjdk-11*

to remove all openjdk-11 packages on your system.

This forces your program to run on openjdk-8-jre instead of openjdk-11-jre, as I had both installed. Apparently Java Assistive Technology doesn't run on the openjdk-11-jre package. I believe there is also a way to specify which Java version to run, but I don't know it off the top of my head and I'm sure there's another post on that topic.

Share:
136

Related videos on Youtube

ertemishakk
Author by

ertemishakk

Updated on September 18, 2022

Comments

  • ertemishakk
    ertemishakk over 1 year
        <input type="hidden" id="trix-input" 
               value="<div>abc <span style=&quot;color:red;&quot;>123</span></div>"
        />
    
            <trix-editor input="trix-input"></trix-editor>
    

    I expect the code above to print abc 123(red color), however the value is stripped from its CSS styles.

    The code above works on an HTML page, however when I put it on a react component CSS styles get removed.

    I'd appreciate any help.

    Thanks

    Update:

    React Component - CSS gets stripped

                   <trix-editor
                        style={{ minHeight: 300 }}
                        input={"trix" + this.props.index}
                        ref={this.trixInput}
                    />
    
                    <input
                        type="hidden"
                        id={"trix" + this.props.index}
                        value={this.props.journals.article.paragraphs[this.props.index].paragraph}
                        className={classnames('', { 'is-invalid': errors.paragraph })}
                    />
    
  • gorlok
    gorlok about 8 years
    This is the best solution. Works for android-sdk/tools/draw9patch too (Android SDK Tools)
  • rubo77
    rubo77 about 8 years
    This also worked on my Ubntu 15.10 for fixing freemind that wasn't starting otherwise
  • Fabio Iotti
    Fabio Iotti over 5 years
    Appending did not solve for me. Prepending changed the message to Assistive Technology not found: not followed by org.GNOME.Accessibility.AtkWrapper.
  • marosg
    marosg over 5 years
    it just happened to me today, two and half years after this answer. instead of java-8 it is java-11 now, other than that, helped me, thank you
  • Nikhil VJ
    Nikhil VJ over 5 years
    Thanks, this worked for me for starting another software called OpenRefine. java-11-openjdk here as well.
  • karel
    karel over 5 years
    You don't even need to uninstall openjdk-11-jdk or openjdk-11-jre: askubuntu.com/questions/315646/…
  • Alexandre Campos
    Alexandre Campos over 5 years
    Worked like a charm, just making some adjustments. It's not java-8 here.
  • Chris Good
    Chris Good over 5 years
    This worked for me with Ubuntu 18.04 when java set back to version 8 from 10 (because openjfx not available precompiled yet). Other methods listed in this question did not work for me.
  • OldTeaOwl
    OldTeaOwl over 3 years
    Worked for fixing Slick2D game engine problem, thanks!
  • Felix Aballi
    Felix Aballi over 3 years
    Also in Ubuntu 20.10 ;-)
  • Illegal Operator
    Illegal Operator over 2 years
    This did the trick
  • Admin
    Admin almost 2 years
    Although my system is headless, my application does manipulate image files. I do not want to install the full JRE which causes X to be installed. I also do not want to disable the feature because I need to manipulate the image files. So, the question is, if I disable the feature as you describe, will that inhibit the file image functionality of my application?