Hello,

Samuel Thibault, le mer. 06 juin 2018 16:00:37 +0300, a ecrit:
> Like with openjdk-9, accessibility does not work in the openjdk-10
> packages, the libatk-wrapper and java-atk-wrapper do not get loaded.

As mentioned on
https://mail.gnome.org/archives/orca-list/2018-June/msg00112.html the
accessibility.properties file is not in the right place, it should be in
conf/, not lib/ , the attached patch should be fixing that.

Now, we however get this error:

Exception in thread "main" java.awt.AWTError: Assistive Technology not found: 
org.GNOME.Accessibility.AtkWrapper
        at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:472)
        at 
java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:488)
etc.

because it doesn't find the class.  I can see in 

ifeq (0,1)
# FIXME: ext not longer supported
ifeq ($(with_bridge),atk)
        : # create links for the atk wrapper
        echo "usr/share/java/java-atk-wrapper.jar 
$(basedir)/lib/ext/java-atk-wrapper.jar" \
            >> $(d_jre).links
        echo "usr/lib$(multiarch_dir)/jni/libatk-wrapper.so 
$(basedir)/lib/ext/libatk-wrapper.so" \
            >> $(d_jre).links

Well, we do need these to be available. Could we find another way to
make them loadable by java? Of course, using

export CLASSPATH=/usr/share/java/java-atk-wrapper.jar

makes it work, but that's not going to fly for general use :)

Samuel
--- debian/rules.orig   2018-06-11 10:43:04.812340032 +0200
+++ debian/rules        2018-06-11 10:44:11.692055271 +0200
@@ -1344,13 +1344,13 @@
 ifeq ($(with_bridge),atk)
   ifneq (,$(filter $(distrel),lenny wheezy squeeze jessie lucid precise 
quantal raring saucy trusty utopic vivid))
        cp -p debian/accessibility-atk.properties.disabled \
-               $(d)/$(basedir)/lib/accessibility.properties
+               $(d)/$(basedir)/conf/accessibility.properties
   else
        cp -p debian/accessibility-atk.properties.enabled \
-               $(d)/$(basedir)/lib/accessibility.properties
+               $(d)/$(basedir)/conf/accessibility.properties
   endif
 else
-       cp -p debian/accessibility.properties $(d)/$(basedir)/lib/
+       cp -p debian/accessibility.properties $(d)/$(basedir)/conf/
 endif
        cp -p debian/swing.properties $(d)/$(basedir)/lib/
 
@@ -1364,7 +1364,7 @@
        : # move config files to $(etcdir) and symlink them.
        rm -f $(d_jrehl).links
        for i in \
-         lib/accessibility.properties \
+         conf/accessibility.properties \
          conf/logging.properties \
          conf/sound.properties \
          conf/net.properties \

Reply via email to