1

I have an executable jar program. It's an JavaFX program. It runs great on OpenJDK 8 and higher. I want to publish it as a snap package in Ubuntu's developer portal. I have it currently packaged as a deb file, however, Ubuntu doesn't accept those. I need to submit it as a snap package.

That's my current hurdle. I am completely new to Snapcraft. I read the documentation at http://snapcraft.io It gave a good overview on the terminal commands and the theory behind snap packages.

I still can't seem to package my program (code my snapcraft.yaml) correctly. All I need is the openjdk-8-jre dependency included and my executable jar. The deb package I created installs perfectly and creates a desktop file with an icon so that people could run it from the menu. Is there a way to include this in the snap package?

Thank you for any help!

Roman Khimov
  • 4,807
  • 1
  • 27
  • 35
Nickety
  • 11
  • 4

1 Answers1

1

In the Snappy Playpen we collect good examples of snaps. Here a few a which which might help:

dholbach
  • 161
  • 9
  • I tried to use the openjdk-demo as a template. The openjdk-demo files won't compile in snapcraft. I get this when trying to build: "Snapcraft: snapping ~/snappy-playpen/openjdk-demo/snapcraft.yaml Snapcraft: Something went wrong. Snapcraft returned with : Issues while validating snapcraft.yaml: Additional properties are not allowed ('confinement' was unexpected) " – Nickety Sep 28 '16 at 02:37
  • Which version of snapcraft are you using? – dholbach Sep 28 '16 at 06:41
  • It's Snapcraft version 2.8.4 – Nickety Sep 29 '16 at 21:31
  • Can you ensure you have the latest updates installed? Ubuntu 16.04 LTS and Ubuntu 16.10 are already up at snapcraft 2.18.1. – dholbach Sep 30 '16 at 09:14