Tools‎ > ‎Phylogenetic tree‎ > ‎Tree-viewer‎ > ‎Forester‎ > ‎

Java error

Ubuntu 18

Java error: Assistive Technology not found

Java error while running the  → forester-tool

java -cp /path/to/tool/forester_1050.jar org.forester.archaeopteryx.Archaeopteryx

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 java.awt.Window.getToolkit(Window.java:1358)
    at java.awt.Window.init(Window.java:506)
    at java.awt.Window.<init>(Window.java:537)
    at java.awt.Frame.<init>(Frame.java:420)
    at java.awt.Frame.<init>(Frame.java:385)
    at javax.swing.JFrame.<init>(JFrame.java:189)
    at org.forester.archaeopteryx.MainFrame.<init>(MainFrame.java:298)

Problem

no graphics library available in "headless" java version

"If you want to run any Java application with a GUI, you need the non-headless openjdk package (openjdk-11-jre)"

Solution

Remove "headless" java version and install non-headless java  ( openjdk-11-jre-headless )

# check current version
sudo dpkg -l | grep openjdk 
   openjdk-11-jre-headless:amd64 ubuntu~18.04 amd64 OpenJDK Java runtime, Hotspot JIT (headless)

# remove "headless" java version
sudo apt-get remove openjdk-11-jre-headless

# install non-headless version of java
sudo apt-get install openjdk-11-jre


# check installed version
java -version
  openjdk version "11.0.4" 2019-07-16
  OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
  OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode)