using graalvm to convert jar to exe with all jars included

Viewed 899

I have created a jar file abc.jar. I want my jar to be converted to .exe file using the native-image command of graalvm. The jar needs some dependencies(external jars) to work.

So my command looks like:-

native-image -jar abc.jar output -cp "abc.jar;C:\lib\*"

The exe is generated and works on my machine. Nevertheless, when I ship it to a different matching and try to run the same it doesn't work unless I place all libs under C:\lib folder(the very same folder where I placed the external dependent jars). How can I create an executable with the jars included as part of exe file.

I tried the following specified in the documentation and no luck.

Regards.

0 Answers
Related