Gluon Native/Mobile using java.awt.Toolkit

51 Views Asked by At

I have an app that uses java.awt.Toolkit in various places.

When I build it using Gluon (either native/mobile) and run it, I get the following error:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at java.awt.Color.<clinit>(Color.java:277) at org.geotools.styling.FillImpl$1.<init>(FillImpl.java:43)

Can I use AWT with Gluon (native or mobile)?

If so do I need to include something in my pom, gluon config, args, ..., to allow me to use AWT?

thx

I tried to use AWT and got a class not found error on java.awt.Toolkit. I had hoped it would work

0

There are 0 best solutions below