[oe] [meta-java] Exception running x11 application

Otavio Salvador otavio at ossystems.com.br
Mon Dec 29 21:05:30 UTC 2014


On Sat, Dec 27, 2014 at 6:02 PM, Gonzalez, Alex <Alex.Gonzalez at digi.com> wrote:
> When running an example graphical application on X11 I get the following exception:
>
> Exception in thread "main" java.awt.AWTError: Toolkit not found: sun.awt.X11.XToolkit
>         at java.awt.Toolkit$2.run(Toolkit.java:875)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:860)
>         at java.awt.Toolkit.getEventQueue(Toolkit.java:1730)
>         at java.awt.EventQueue.invokeLater(EventQueue.java:1217)
>         at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1287)
>         at HelloWorldSwing.main(HelloWorldSwing.java:17)
>
> This is similar to an issue reported for the dora branch on https://github.com/woglinde/meta-java/issues/60, however the suggested revert leaves a non buildable system.
>
> Has anyone succeeded in running a graphical java application over X11?

I didn't for a while (but succeed in past).

Anyway I tried to revert the change and it opens a can of worms. The
initial fix I ended needing to work was to fix QEMU call and this,
after some scratch head worked. However this didn't fix the build as
QEMU eats a lot of memory doing the processing and eventually is
killed:

[1673545.675672] Out of memory: Kill process 22041 (qemu-arm) score
960 or sacrifice child
[1673545.675963] Killed process 22041 (qemu-arm) total-vm:31542644kB,
anon-rss:31482564kB, file-rss:1368kB

So this is very frustrating ...

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-devel mailing list