From Jar file to my own Snap

Hello to all,

First. I’m really new to the ubuntu core world and the snap concept. Second. I’m not a developer but instead a system engineer Third. I’ve read the tutorial on how to build my own snap, and some example that included also java in the yml file, but It seems a lot of thing to do, for a thing as simple as I want to do.

Nevertheless I would try to get some suggestion from the forum people, that could probably save a lot of time and trial and error.

these are my requirements

I have a jar application made by a third party (IBM) and that I can download from their storage, it is a quorum application. Normally we run it on redhat linux (or clone of that) with java openjdk headless and a systemctl configuration and yum take care of all the dependencies

Now I have a thin client from lenovo that run ubuntu core and found that I cannot install anything through normal means but that a I have to use snap and even though I’ve found openjdk as a snap, I cannot run the jar because it is outside of the snap file system of the openjdk snap

What you would suggest me to do?

I cannot publicly publish a ipquorum snap, because it will contain private information of the storage, so, If a had to go with the snap thing, I imagine I will have to have an unsecure snap (because it will be not taken from the store), but for sure I do not understand If a I had to create a separate build environment (and how) to create the private snap and then copy it on the thin client an install it from local storage

Is this the only option?

Thanks in advance

Regards

Davide

I use my own build environment on local computer to create snaps, with that I can create a ‘private snap’ (a .snap file to copy on USB key for example), I have not tested the only build process of Snap Store.

Notes:

  • It is possible to upload snaps on snap store that will be be unlisted (Only installable when knowing its snap name).
  • Recently I have snapped a Java sofware ( Install Gods Deluxe on Linux | Snap Store ). As example you may install it then read it (file: /snap/gods-deluxe/current/meta/snap.yaml ). I hope to snap more Java softwares in the future.