You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a working little app (Spring Boot 3, maven, latest graalvm CE, linux) here.
I want to compile it with musl, so it's more portable regarding glibc.
At the moment, the executable is produced without any problem in github actions (and on my work station) : the executable and all the .so are well produced in target.
I have installed musl and zlib like stated here , and have changed my maven configuration :
The compilation is succesful, but the .so are not next to the executable (expected, as I imagine they are "embedded" in the final executable), then the app fails with Caused by: java.lang.UnsatisfiedLinkError: No awt in java.library.path for example, and so on.
I can see in the log that the .so are not produced
Produced artifacts:
/home/ben/IdeaProjects/flhacker/target/build-artifacts.json (build_info)
/home/ben/IdeaProjects/flhacker/target/flhacker (executable)
Am I missing something ? Thanks !
- GraalVM version : `OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)`
- JDK major version: 21
- OS: ubuntu 20.04 (work station) and 22.04 (github actions OS)
- Architecture: x86_64
The text was updated successfully, but these errors were encountered:
mpalourdio
changed the title
Statically Linked native image does not produce all the needed .so next to the executable
Statically Linked native image does not produce/embed all the needed .so next to the executable
May 13, 2024
Hello,
I have a working little app (Spring Boot 3, maven, latest graalvm CE, linux) here.
I want to compile it with musl, so it's more portable regarding glibc.
At the moment, the executable is produced without any problem in github actions (and on my work station) : the executable and all the
.so
are well produced intarget
.I have installed
musl
andzlib
like stated here , and have changed my maven configuration :The compilation is succesful, but the
.so
are not next to the executable (expected, as I imagine they are "embedded" in the final executable), then the app fails withCaused by: java.lang.UnsatisfiedLinkError: No awt in java.library.path
for example, and so on.I can see in the log that the
.so
are not producedAm I missing something ? Thanks !
The text was updated successfully, but these errors were encountered: