java-atk-wrapper accessibility and openjdk9

Fridrich Strba fridrich.strba at suse.com
Wed Oct 18 15:52:08 UTC 2017


The previous solution worked, but only after some little java program
was launched. So I assume that the classloader was reading the property
too early and this worked only because of some caching.

That is why I came with this other patch that looks working for me.
Although, there is still some caching going on, because if I change the
accessibility.properties, the change is not take in account in the
current shell, but if I change shell, yes. Nevertheless, this one loads
the org.GNOME.Accessibility.AtkWrapper and even when java is first
launched by an applet it works.

Cheers

Fridrich

On 17/10/17 14:33, Fridrich Strba wrote:
> 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: 1903 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20171018/dd47a29f/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/20171018/dd47a29f/signature.asc>


More information about the distro-pkg-dev mailing list