Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jni_onload_awt error when combining with Gluon MobileApplication #15

Open
rmarquez123 opened this issue Jun 7, 2021 · 0 comments
Open

Comments

@rmarquez123
Copy link

rmarquez123 commented Jun 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant