-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot locate symbol "JNI_OnLoad_awt" #970
Comments
A little update: I ran my program on desktop with the VM option -verbose:class and could not find any AWT reference in the log. So, I have no idea what triggers loading the AWT library. I also tried the tiny reproducer here. After updating it to use the latest version of the gluonfx-maven-plugin I can confirm that it still reproduces the error. |
@mipastgt Can you test if your issue gets solved with the plugin snapshot? version: 1.0.4-SNAPSHOT
|
The plugin has not yet been uploaded to https://oss.sonatype.org/content/repositories/snapshots/com/gluonhq/gluonfx-maven-plugin/ |
Right, it wasn’t published yet. It is now |
It doesn't work yet but at least I get another error message :-( (Again AWT related.)
|
Ok, that was somehow expected. |
Do you really mean libsubstrate.so? I only have a libmpCoPilotApp2.so in target/gluonfx/aarch64-android.
|
Yes, that’s what I need, thanks. We need to remove that U(ndefined) symbol |
That's what I thought. There seems to be only this single one in there. |
Can you try again? |
And again a new one:
|
Should we reopen this issue so that the new problem does not get forgotten or would you rather create some new (umbrella ?) issue? |
Probably best to open a new issue, as this is something that might happen more frequently when using new GraalVM versions. |
@johanvos I did as you suggested but it seems only repo-owners are able to add labels. (Verified agains my own repos, where I can do that.) |
I can build my app for Android without problem on a cloud Linux server and install it on my phone locally on a Mac but when I try to run it, it immediately crashes with the following message:
This looks very much like the bug reported here: oracle/graal#3406
This stops me from creating and using any Android app with JavaFX. Is there any solution or workaround for this problem?
Expected Behavior
It should run and not crash.
Current Behavior
It crashes.
Steps to Reproduce
I cannot provide a simple example myself but see link above.
Your Environment
Built on a cloud instance of Ubuntu at Hetzner with gluonfx-maven-plugin 1.0.3 and graalvm-svm-linux-gluon-21.2.0-dev. APK copied to macOS and installed via adb on a Samsung Galaxy S7.
The text was updated successfully, but these errors were encountered: