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

2016-09-16 Thread 殷啟聰
This bug can be seen if you run "draw9patch" of Android SDK even if
you installed default-jdk & libawk-wrapper-java. By following a thread
[1] on Ask Ubuntu I successfully run "draw9patch". The workaround is:

Uncomment ``` assistive_technologies=org.GNOME.Accessibility.AtkWrapper```
in file .

I'm not sure if this is a bug of openjdk-8-jre, but it is surely a bug.

[1]: 
https://askubuntu.com/questions/695560/assistive-technology-not-found-error-while-building-aprof-plot

___
Mailing list: https://launchpad.net/~openjdk
Post to : openjdk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openjdk
More help   : https://help.launchpad.net/ListHelp


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

2015-09-22 Thread Jan Henke
reassign -1 openjdk-8-jre 8u66-b01-3
thanks

Am 19.09.2015 um 16:26 schrieb Martin Hanson:
> 12.09.2015, 21:23, "Jan Henke" :
>> 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.(Window.java:537)
>>>  at java.awt.Frame.(Frame.java:420)
>>>  at java.awt.Frame.(Frame.java:385)
>>>  at javax.swing.JFrame.(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
> I thought as much, but none the less, I can run Minecraft on the desktop with 
> only the headless package installed:
>
> $ dpkg -l | grep openjdk
> ii  openjdk-8-jre-headless:amd64  8u66-b01-1~bpo8+1   
> amd64OpenJDK Java runtime, using Hotspot JIT (headless)
>
> This package is from Jessie backports and everything works. If I install the 
> package from Testing then it doesn't work. I also tried installing both 
> headless and the normal jre package, but the problem persist, until I remove 
> both packages, install the Jessie backport and put it on hold.
>
> Sometimes it doesn't give the above error, but this one instead, then Java 
> freezes:
>
> LOADEDenfalse
> SAVED: enfalse
> LOADEDenfalse
> SAVED: enfalse
> LOADED LANGUAGES
> ERROR StatusLogger Unrecognized format specifier [d]
> ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 
> 16 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [thread]
> ERROR StatusLogger Unrecognized conversion specifier [thread] starting at 
> position 25 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [level]
> ERROR StatusLogger Unrecognized conversion specifier [level] starting at 
> position 35 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [logger]
> ERROR StatusLogger Unrecognized conversion specifier [logger] starting at 
> position 47 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [msg]
> ERROR StatusLogger Unrecognized conversion specifier [msg] starting at 
> position 54 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [n]
> ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 
> 56 in conversion pattern.
> ERROR StatusLogger No log4j2 configuration file found. Using default 
> configuration: logging only errors to the console.
> ERROR StatusLogger Unrecognized format specifier [d]
> ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 
> 16 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [thread]
> ERROR StatusLogger Unrecognized conversion specifier [thread] starting at 
> position 25 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [level]
> ERROR StatusLogger Unrecognized conversion specifier [level] starting at 
> position 35 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [logger]
> ERROR StatusLogger Unrecognized conversion specifier [logger] starting at 
> position 47 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [msg]
> ERROR StatusLogger Unrecognized conversion specifier [msg] starting at 
> position 54 in conversion pattern.
> ERROR StatusLogger Unrecognized format specifier [n]
> ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 
> 56 in conversion pattern.
> LOADEDenfalse
> SAVED: enfalse
> LOADEDenfalse
> SAVED: enfalse
>
> This

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

2015-09-22 Thread Jan Henke
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.(Window.java:537)
> at java.awt.Frame.(Frame.java:420)
> at java.awt.Frame.(Frame.java:385)
> at javax.swing.JFrame.(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



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~openjdk
Post to : openjdk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openjdk
More help   : https://help.launchpad.net/ListHelp


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

2015-09-22 Thread Jan Henke
Am 21.09.2015 um 20:22 schrieb Martin Hanson:
> Hi Jan
>
> Thanks for your reply.
>
> Yes, the problem exist when running with "openjdk-8-jre" in which I am 
> getting the "ERROR StatusLogger No log4j2 configuration file found. Using 
> default configuration: logging only errors to the console." error and the 
> program then just hangs.
Hi Martin,

the log message you quote comes from Minecraft itself and not openjdk.
For that problem please contact the Minecraft support, since it is third
party software.

Do you have any exception stack trace from Minecraft in your log? Not
these "ERROR ..." lines.

Best regards,
Jan Henke



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~openjdk
Post to : openjdk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openjdk
More help   : https://help.launchpad.net/ListHelp