Skip to content

jni_onload_awt error when combining with Gluon MobileApplication #15

Open
@rmarquez123

Description

As a starting point, I get this example to work: https://github.com/gluonhq/gluon-samples/tree/master/HelloGluon

Then, I added SpringContext with 'ignite-spring' as the dependency. I get a runtime 'UnsatisfiedLinkError' error occurs when I modify the init method to

@Override public void init() { SpringContext context = new SpringContext(this.getClass(), () -> Arrays.asList()); context.init(); addViewFactory(HOME_VIEW, this::createView); }

The error is exactly the same as in this thread: oracle/graal#3406
My overall environment is similar too.

I also notice that when I remove the 'context.init()' invocation, then the error does not occur. The error will occur regardless of where it is invoked; for example, I could invoke it after the call to addViewFactory(...) and the error will still happen.

I get similar crashes with Guice and Dagger.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions