Skip to content

AWTError when running graphics tools on headless remote server #182

Description

@owlang

The workaround for now is to explicitly direct the AWT packages to run in headless mode so that it can access Java graphics features normally delegated to the graphics host from the command construction (set property flag). This is only needed for tools like those in figure-generation, the DNA Shape tools, the insert size histogram tools, etc that generate images over the course of execution.

java -jar -Djava.awt.headless=true $SCRIPTMANAGER figure-generation merge-heatmap ...

An easy longer term solution might be to switch to headless mode as the main argument parsing recognizes the command as a CLI command with:

System.setProperty("java.awt.headless", "true");

Read More: https://www.oracle.com/technical-resources/articles/javase/headless.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions