Classic confinement request for cric (round two)

I did the first request in 2021, but I’ll try once more since it never worked.

What I failed to mention last time is that I think it aligns fine with compilers and running arbitrary command (esp if user-configurable such as a developer tool to organize dev environments)

Cric is a gui for Java’s jlink command, used to make custom runtime images. So it has to be able to execute the jlink command specified by the user.

https://docs.oracle.com/en/java/javase/23/docs/specs/man/jlink.html https://snapcraft.io/cric

The old request

hi @trixon - just to double check my understanding of cric, does the application expect java, jlink, etc to already be installed on the users machine or are these able to be shipped with the snap and it’s runtime?

@cav java is included in the snap and it is used to run cric.

There are many jdk providers, a few of them listed in the link below.

Each provider can offer multiple versions of the jdk. Cric uses the jlink command provided in each jdk. A bundled jlink in the snap would not always be compatible with the user selected jdk.

Hey @trixon

To be sure I properly understand the use case, cric snap includes java to run the cric application itself. To make custom runtime image, cric uses the java sdk (and jlink) selected by the user (and already present in the user’s host system). Is that right?

I just wonder if it will be feasible to let the user choose an sdk from the cric GUI, then download that sdk (maybe to SNAP_COMMON_DATA) and use the downloaded sdk (and jlink) to create the custom runtime image. Do you think that would work?

Thanks

That’s right. @jslarraz

It would not be feasible to let cric download sdk. They would need to be managed, removed/updated and so on, and there is an app for doing just that.

And I don’t think developers would be happy if forced to download sdk twice, because they surley have one installed if the need to use cric. That would be

hi @trixon - apologies for the delay Given the discussion above, I agree it fits within the existing category of compilers. As such, the requirements for classic confinement are understood.

I will begin publisher vetting. To confirm, your github account associated with the upstream project is trixon?

Hi @cav , yes it is.

1 Like

The publisher is now vetted. Classic has been granted. This is now live

1 Like