---
title: "example.runtime"
description: "Plans Java applications for a local JVM or native executable."
kind: "package"
id: "example.runtime"
module: "runtime-kit"
version: "1.0"
---

# ▣ example.runtime

[runtime-kit](../../index.md) · Every page: [llms.txt](../../llms.txt)

Package in runtime-kit. Since 1.0.

Plans Java applications for a local JVM or native executable.

### Preparing a build

Start with [`example.runtime.BuildPlan.defaults(String)`](BuildPlan.md#defaults%28java.lang.String%29), select a [`example.runtime.Target`](Target.md), and pass the plan to [`example.runtime.Planner.Local`](Planner.Local.md). Preparation validates configuration before a compiler is invoked.

### Extending a build

Implement [`example.runtime.BuildStep`](BuildStep.md) to transform a plan into another artifact. Report invalid input with [`example.runtime.PlanException`](PlanException.md).

## Interfaces

- [`BuildStep`](BuildStep.md): A named phase in the preparation of a BuildPlan.

## Classes

- [`Planner`](Planner.md): Validates a BuildPlan before handing it to a BuildStep.

## Records

- [`BuildPlan`](BuildPlan.md): Describes how to build a Java application as a native executable.

## Enums

- [`Target`](Target.md): Selects the runtime that will consume a BuildPlan.

## Exceptions

- [`PlanException`](PlanException.md): Indicates that a BuildPlan cannot be prepared.

## Annotations

- [`Experimental`](Experimental.md): Marks a runtime API whose contract may evolve before the next release.
