java-atk-wrapper accessibility and openjdk9
Fridrich Strba
fridrich.strba at suse.com
Tue Oct 17 12:33:57 UTC 2017
Hello, good people,
Since the OpenJDK 9 removed the extension system, I was -- on and off --
thinking how to fix the java-atk-wrapper based accessibility. I wanted
to achieve something similar to what many distro packagers do for all
versions up to 8. Having a package of symlinks and
accessibility.properties file that tells the Java ATK which assistive
technologies to use. I wanted something that would be activated when the
package is installed and would have the normal behaviour when not.
I came with the attached patch.
Basically, it is enough to put into the accessibility.properties file a
property "assistive_technologies_classpath" pointing to the
java-atk-wrapper.jar and it will be added to the system property
java.class.path. It looks like it is done enough early for the
classloader to be able to load the org.GNOME.Accessibility.AtkWrapper class.
Now, it looks working here. At least, nothing is existing with
classnotfound exception. However, me being rather ignoramus concerning
Java, I would not mind someone in the know to review it for obvious
mortal sins against Java.
Cheers
Fridrich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: load_java_atk_wrapper.patch
Type: text/x-patch
Size: 1401 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20171017/bf08b734/load_java_atk_wrapper.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20171017/bf08b734/signature.asc>
More information about the distro-pkg-dev
mailing list