Hi all,
I’m new to snap and trying to create a snapcraft.yaml for my Java cli tool.
I’m using the Azul JDK/JRE.
I have 2 questions:
I have already a pipline process that build the Jar and place it in an artifactory. Is it possible to create a snap without building the app from source, but instead using the already existing Jar?
How can I bundle in my snap the Azul jre version and based on it when the snap installed?
Additionally, I looked at the first snap java example, and I can’t see that the jre is included in the snap? the idea is to bring all the dependencies with the snap right? so the client wont need to install all the prerequisites by himself. So I expected to bring the jre bundled in the snap and when the snap is installed to use it to run the jar, somthing like “<SNAP_FS>/jre/bin/jar myjar.jar”
Thanks @ogra,
but I want to use Azul jre and not the regular openjdk, that’s why I try to bundle the Azul jre using tar.gz.
Additionally, I’m trying to dump my already compiled jar file, but I’m keep getting ‘my-cli-1.0.602.jar’ is not a directory