-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
UnsatisfiedLinkError: No awt in java.library.path #8273
Comments
Thank you greatly for the concise reproducer! Assigning it to @pejovica as he is providing support for AWT. |
@tabiStein Is |
@pejovica No, the executable is alone in a workspace/ directory. Yes, I do see libawt.so listed in the built artifacts: I've attached the full output of running mvn -Pnative package, so you can check it in detail: |
Well, that's the problem. All produced artifacts are necessary for the executable to work (i.e., it can't work without the listed shared libraries). Since the build output shows that all required artifacts are produced, and the error corresponds to the fact that the shared libraries are indeed missing when running the executable, there is nothing to fix on the native image side. I'm guessing this is a bug with what drives the |
Thanks for the insight @pejovica , I have created a new issue with the Paketo team to see if it's an issue with their buildpack. Paketo Issue 427 If it's alright with you, I would like to keep this issue open until we can identify and verify the fix. |
@tabiStein sure, I hope you don't mind that I've re-assigned the ticket to you. Please update the ticket when paketo-buildpacks/native-image#308 is resolved. |
@tabiStein The Ticket paketo-buildpacks/native-image#308 has been closed recently. |
Thanks Nils, my team deprioritized the native image work due to this issue so I haven't been keeping up-to-date. I'll close the ticket. |
Describe the issue
Note: This is a reproduction of issue #2842 , as requested by @vjovanov. That issue had been marked as complete, but many users (including I) have continued to experience it -- so, vjovanov said: "to get this fixed it would be best to open a new ticket for this problem with a minimal reproducer".
Essentially, when attempting to load a class from the awt library in a native image, the titular exception occurs.
Steps to reproduce the issue
Describe GraalVM and your environment:
More details
The output printed from my enviroment, finishing with the error stack trace, is as follows:
The text was updated successfully, but these errors were encountered: