-
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
[Native Image] unable to run the program packed by native-image #10121
Comments
Please make sure to:
|
Dear @oubidar-Abderrahim I have use headless:
But still doesn't work, error:
|
Hello, @quantrpeter, you most certainly need the tracing agent to collect reflection and JNI info. e.g.
...and it could very likely require manual attention too, depending on what exactly your application does with the Gui. My experience is Linux, not Mac, but there also could be some external dependency on e.g. fonts packages being available. Providing a small reproducer repo would be great. |
Describe the Issue
I have packed my project into native image using maven, by the official tutorial. It success give me the executable, but when I run it. I got:
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "23.0.1" 2024-10-15
Java(TM) SE Runtime Environment Oracle GraalVM 23.0.1+11.1 (build 23.0.1+11-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 23.0.1+11.1 (build 23.0.1+11-jvmci-b01, mixed mode, sharing)
Operating System and Version
Darwin quantr-iMac.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64
Troubleshooting Confirmation
Run Command
./qemu-log-panel
Expected Behavior
expected it works but not
Actual Behavior
exception
Steps to Reproduce
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: