Craft a Java app

This how-to guide covers the steps, decisions, and implementation details that are unique when crafting a Java-based snap. We’ll work through the aspects unique to Java apps by examining an existing project.

The process of developing a snap for a Java app builds on top of JRE, making it possible to adapt and integrate an app’s existing build tooling and dependencies into the crafting process.

Example project file for Cal

The following code comprises the project file of a Java tool, cal. This project is both a driver and a CLI tool for power and cooling components in PCs.

Cal project file
snapcraft.yaml
<