While running a Java program on gnome - Ubuntu 18.04 and Linux Mint 19 (program working fine on Windows and Linux Mint 17) I faced the following error:

java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper

The error was raised of this piece of code:

import java.awt.Robot
Robot r = new Robot();

The solution seems quite easy for Ubuntu/Linux Mint/gnome:

Java 11

  • Edit file - /etc/java-11-openjdk/accessibility.properties
  • Comment line - #assistive_technologies=org.GNOME.Accessibility.AtkWrapper

For Java 10:


For Java 9:


For Java 8:


This can be done with script by:

sudo sed -i "s/^assistive_technologies=/#&/" \


Assistive technology not found AWTError