Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper

How to solve "Assistive Technology not found" error in Google App Engine openJdk?

I am developing one web app that uses Apache Batik, it works fine in local with jetty and oracle jdk, but when I deploy it to Google-App-Engine and I call my API I get below error.

Caused by: java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:807)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
at org.apache.batik.bridge.CursorManager.<clinit>(CursorManager.java:102)
at org.apache.batik.bridge.BridgeContext.<init>(BridgeContext.java:1162)
at org.apache.batik.bridge.BridgeContext.<init>(BridgeContext.java:292)
at org.apache.batik.transcoder.SVGAbstractTranscoder.createBridgeContext(SVGAbstractTranscoder.java:336)
at org.apache.batik.transcoder.SVGAbstractTranscoder.createBridgeContext(SVGAbstractTranscoder.java:312)

I searched in google people are saying "This can be done by editing the accessibility.properties file for OpenJDK 8"

Comment out the following line:

#assistive_technologies=org.GNOME.Accessibility.AtkWrapper

But I am using google app engine and not sure How can I do that?

Any help will be appreciated.

like image 796
GeetT Avatar asked Nov 04 '18 04:11

GeetT


1 Answers

I solved this by setting System property dynamically.

Properties props = System.getProperties();
props.setProperty("javax.accessibility.assistive_technologies", "");
like image 85
GeetT Avatar answered Sep 25 '22 04:09

GeetT