Arduino IDE

De wiki jackbot
Sauter à la navigation Sauter à la recherche


Erreur "Accessibility"

Lors de l'installation de l'IDE arduino sous kubuntu 18.04 LTS il est apparut l'erreur suivante :

 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)
       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
       at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
       at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1608)
       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
       at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
       at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
       at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
       at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
       at java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:532)
       at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:613)
       at processing.core.PApplet.<clinit>(Unknown Source)
       at processing.app.Preferences.save(Preferences.java:735)
       at processing.app.Preferences.init(Preferences.java:249)
       at processing.app.Base.main(Base.java:117)
       Caused by: java.lang.ClassNotFoundException: org.GNOME.Accessibility.AtkWrapper
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
       at java.base/java.lang.Class.forName0(Native Method)
       at java.base/java.lang.Class.forName(Class.java:374)
       at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:485)
       ... 15 more

Ce problème se résoud en éditant le fichier :

 /etc/java-11-openjdk/accessibility.properties

et en commenttant la ligne :

 assistive_technologies=org.GNOME.Accessibility.AtkWrapper


erreur "rxtx"

Si c'est l'erreur :

 java.lang.NullPointerException thrown while loading gnu.io.RXTXCommDriver
 java.lang.NullPointerException thrown while loading gnu.io.RXTXCommDriver

Alors il faut ajouter le dépot :

 sudo add-apt-repository ppa:webupd8team/java

et installer :

 sudo apt install oracle-java8-set-default