gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
186 stars 38 forks source link

Error on link goal #496

Closed R0land013 closed 7 months ago

R0land013 commented 7 months ago

Hi there. I was trying to generate a native image of my app https://github.com/R0land013/showly-desktop . When I execute the mvn clean gluonfx:build command all executes normally till the link goal starts to run, then the build fails and the following errors are shown in the link goal execution. Screenshot from 2023-12-19 18-08-00 I am using Ubuntu 22.04.3 LTS, and I am following all the requirements to use gluonfx-maven-plugin. I have spent several days on this problem.

taranion commented 7 months ago

Had the same problem: https://github.com/gluonhq/substrate/issues/1169

Basically making use of code from "java.awt" is not fully supported, it seems.

R0land013 commented 7 months ago

Wow that fixed my problem! The first attempt did not work because I had JAVA_HOME pointing to my JDK 17 path and link goal could not find the ${java.home}/lib/static/linux-amd64/glibc/libmlib_image.a . So I changed the JAVA_HOME to point to the same path as GRAALVM_HOME, and it worked. Thank you very much. I will close this issue.