Skip to content

CacioExtension fails when running under OpenJDK 21 on Linux #19

Description

@jbloomfield2008

The CacioExtension fails to run under Linux with X11 libraries loaded. I've tried both under Ubuntu and Rocky Linux 9.5 running Xfce. In both cases, Cacio runs fine when started from a command-line with a DISPLAY environment variable set, but as soon as it's run from a session with no DISPLAY set then it fails with the following error:

java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: 'void java.awt.Component.initIDs()' [in thread "main"]
at java.desktop/java.awt.Component.initIDs(Native Method)
at java.desktop/java.awt.Component.(Unknown Source)
at java.desktop/javax.swing.ImageIcon$2.run(Unknown Source)
at java.desktop/javax.swing.ImageIcon$2.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/javax.swing.ImageIcon.createNoPermsComponent(Unknown Source)
at java.desktop/javax.swing.ImageIcon$1.run(Unknown Source)
at java.desktop/javax.swing.ImageIcon$1.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/javax.swing.ImageIcon.(Unknown Source)

I've confirmed that both Toolkit / GraphicsEnviroment have been replaced with the Cacio versions. The error above seems to be deep within the native code of the JVM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions