← Back to team overview

openjdk team mailing list archive

Bug#798794: Exception in thread "main" java.awt.AWTError

 

Am 12.09.2015 um 20:40 schrieb Martin Hanson:
> Package: openjdk-8-jre-headless
> Version: 8u66-b01-3
>
> Having just upgraded with an apt-get dist-upgrade on "testing" the following error occurs running Minecraft with java:
>
> LOADEDenfalse
> SAVED: enfalse
> LOADEDenfalse
> SAVED: enfalse
> LOADED LANGUAGES
> Exception in thread "main" 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:1362)
>         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 net.mc.main.Main.startMC(Main.java:173)
>         at net.mc.main.Main.main(Main.java:212)
>
> If I remove the package from testing and manually install the version from jessie-backports (8u66-b01-1~bpo8+1), the problem is gone.
>
> I am running with testing on 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) x86_64 GNU/Linux.
>
> Kind regards.
>
>
Hi Martin,

this is not a bug. If you want to run any Java application with a GUI,
you need the non-headless openjdk package (i.e. openjdk-8-jre). The
headless package is intended for "headless" machines like servers.
Headless means here system usually running without local monitor,
keyboard, mouse, graphical user interface etc.

So the -headless package, by design, does not include the parts
necessary for running applications like Minecraft.

I hope that explanation helps.

Best Regards,
Jan Henke

Attachment: signature.asc
Description: OpenPGP digital signature