-
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
[GR-54159] Fontconfig head is null, check your fonts or fonts configuration #8896
Comments
Hi @zgmgt, thank you for reaching out to us! I am trying to reproduce the issue but I am getting a different error. Could you please share with me the full pom file you're using? Thank you! |
Hi @selhagani ,thank you for your reply. The attachment is my project file |
Hey @zgmgt, Unfortunately, I can't download the project directly due to our internal policy. Would you mind uploading it to a public GitHub repository and sharing the link with me? Thank you! |
Hey @selhagani . Okay, I'll just paste them out, just two files.
|
Hi @zgmgt, I wanted to share a helpful update regarding the issue you're facing. Then it worked correctly. The issue is attributed to how some AWT/Swing classes are loading required properties from the JVM at runtime by invoking the system.getProperty("java.home") which is not available to native images at runtime. |
Describe GraalVM and your environment :
java -Xinternalversion
:Describe the issue
I have a simple swing program that uses native-image to generate an executable file. I found that something went wrong when it was run. The error message was "Caused by: java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration"
Code snippet or code repository that reproduces the issue
Steps to reproduce the issue
After the build is completed, the following exception occurs when executing it
The text was updated successfully, but these errors were encountered: