How do I load a jar dynamically/at runtime in a graal VM native image?

590 Views Asked by At
  • I have a particular compile dependency, let's say clientData_V1.jar. I build a native image out of my Spring boot app using Graal VM 22.3. When I actually want to execute the native image that I generated, I want to replace the clientData_V1.jar that I used in creating the native image with clientData_V2.jar. Is this possible in a native image? Earlier when I was on OpenJDK I was using a Spring's PropertiesLauncher to accomplish this.
  • I was sifting through the documentation and on Dynamic features and accessing resources which seemed a bit relevant for my use case but I'm not sure this will allow me to read a jar from the local file system and replace the one that is already a part of the native image.

Any help would be appreacited, Thanks.

0

There are 0 best solutions below