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
What we are currently missing in native-image is a step where we copy the dynamic libraries the built image depends on, to the directory where the image got built into. Also the list of Produced artifacts: that we output at the end of an image-build should list them. Something like:
Produced artifacts:
/home/user/my_sound_using_image.exe (executable)
/home/user/jsound.dll (shared library required by image)
This way the user sees that the resulting image requires an additional shared library to function correctly. This is will also be useful for applications that use UI frameworks that we can only support properly via loading their shared libraries components at image-runtime (e.g. AWT/Swing applications). cc @pejovica
olpaw
changed the title
Native image generated program cannot run without "jsound.dll" is in same directory
Provide shared libraries required by image as part of produced artifacts
Aug 8, 2022
It is much much easier to deliver a product as one single file!
Unfortunately that's not always feasible. While we do support single file awt images in Linux at the moment it causes many problems and limitations. At some point in the future awt images on Linux will also require awt as shared library instead of linking it in statically.
wirthi
changed the title
Provide shared libraries required by image as part of produced artifacts
[GR-40305] Provide shared libraries required by image as part of produced artifacts
Apr 30, 2024
Hi,
I have just generated an 'exe' file using GraalVM native-image.
Program works well when 'jsound.dll' is located in same execution directory.
Is it possible to enforce native-image to generate an executable that encapsulate the dll ?
Any option ?
Thanks for your advice.
The text was updated successfully, but these errors were encountered: