Skip to content

GraalVM NativeImage Support, java.home property not set #15

Open
r1gm opened this issue Dec 10, 2024 · 0 comments
Open

GraalVM NativeImage Support, java.home property not set #15

r1gm opened this issue Dec 10, 2024 · 0 comments

Comments

@r1gm
Copy link

r1gm commented Dec 10, 2024

Hi, i want to try build RedExpert with NativeImage

it's build successfully, but i had an error when running the generated executable :

Exception in thread "main" java.lang.Error: java.home property not set
at [email protected]/sun.awt.FontConfiguration.findFontConfigFile(FontConfiguration.java:180)
at [email protected]/sun.awt.FontConfiguration.(FontConfiguration.java:97)
at [email protected]/sun.awt.windows.WFontConfiguration.(WFontConfiguration.java:41)
at [email protected]/sun.awt.Win32FontManager.createFontConfiguration(Win32FontManager.java:175)
at [email protected]/sun.font.SunFontManager$2.run(SunFontManager.java:352)
at [email protected]/sun.font.SunFontManager$2.run(SunFontManager.java:309)

in my other project i add in main :

    String javaHome = System.getProperty("java.home");        
    if (javaHome == null) {
        System.setProperty("java.home", "./");
    }

and it solve the problem, or maybe RedExpert team had other idea.

Best Regards

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

No branches or pull requests

1 participant