rednoah
November 25, 2018, 10:43am
1
I’m trying to use snapcraft to package a Java 11 desktop application. It works fine on Ubuntu Cosmic because I can install openjdk-11-jre and openjfx via apt.
But since snapcraft is using the xenial repository, I can’t build a snap, because The package 'openjdk-11-jre' was not found
.
Is there a way to build a snap package but using cosmic package repository?
pachulo
November 25, 2018, 11:49am
2
If you use the new core18
base you should be good to go. More info:
Hello Snapcrafters! The Snapcraft team is delighted to announce that version 3.0 is now available.
Traditionally, the only base that has existed was derived from Ubuntu 16.04 LTS. With the release of Ubuntu 18.04 LTS a new base was created. The current architecture also allows for other bases to exist, such as one derived from Fedora. Building a snap with no base requires developers build on Ubuntu 16.04 LTS; the introduction of bases and build environments in snapcraft 3.0 automatically provis…
And an example of a snap using it:
https://github.com/keepassxreboot/keepassxc/blob/develop/snapcraft.yaml
rednoah
November 25, 2018, 12:03pm
3
Thanks! base: core18
does help with openjdk-11-jre
.
Next roadblock is openjfx
which is for Java 8
on bionic
but Java 11
on cosmic
:
Is there any way to use cosmic
as base? Or to somehow use the cosmic
package for this particular package?
pachulo
November 26, 2018, 9:28am
4
Not that I know.
Hmm, that’s a good question and I don’t know for sure, but I would say that an option would be to install the package “manually” during snap creation…